Simplify the precondition checking code 42/277242/3
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 4 Jul 2022 05:00:32 +0000 (14:00 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 4 Jul 2022 08:33:49 +0000 (17:33 +0900)
commit38fbe2a994656d91e123e86989761a609d65c7b5
tree5179f3451fd199aacfc6b0167a540ae1cc252966
parentba9fbfe42b8511db44ef3a341f96a8a9dd614b32
Simplify the precondition checking code

- Issue:
Each functions of TTS framework have many precondition checking codes and
these codes are duplicated.

- Solution:
This patch creates macro for simplifying the precondition checking
codes. According to this patch, each checking codes are becoming shorter
and simpler than before. There are still duplicated code, but these
codes are shorter than before, so these can effectively reduce the line of
duplicated code.

Change-Id: Ibf705a819217d892ff4d2bdcb2d74d3539640b65
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/tts.c
client/tts_core.c
client/tts_core.h
client/tts_dlog.h [new file with mode: 0644]
client/tts_tidl.c