Код: Выделить всё
TL_CLI_ADD_EXIT_CODE(123,"SOMENAME","Description of code")
Код: Выделить всё
#define EXITCODE_SOMENAME 123
addExitCode(123,"SOMENAME","Description of code");
Код: Выделить всё
// Macro to concatenate EXITCODE_ prefix with the number
#define TL_CLI_CONCAT_EXITCODE(number) EXITCODE_##number
// Macro to create a new exit code definition
#define TL_CLI_ADD_EXIT_CODE(c,n,d) \
#define TL_CLI_CONCAT_EXITCODE(n) c \
addExitCode(c,\"n\",d);
Подробнее здесь: https://stackoverflow.com/questions/793 ... lls-method
Мобильная версия