no prints on ENABLE_RETAIL build
parent
7316666bcc
commit
6616dce555
|
@ -1496,9 +1496,6 @@ ffi.cdef([[
|
||||||
//lcpp INF [0000] vec3: macro name but used as C declaration in: void light_dir(light_t* l, vec3 dir);
|
//lcpp INF [0000] vec3: macro name but used as C declaration in: void light_dir(light_t* l, vec3 dir);
|
||||||
//lcpp INF [0000] vec2i: macro name but used as C declaration in:vec2i* entries;
|
//lcpp INF [0000] vec2i: macro name but used as C declaration in:vec2i* entries;
|
||||||
//lcpp INF [0000] vec3i: macro name but used as C declaration in:typedef vec3i guid;
|
//lcpp INF [0000] vec3i: macro name but used as C declaration in:typedef vec3i guid;
|
||||||
//lcpp INF [0000] test: macro name but used as C declaration in:API int (test)(const char *file, int line, const char *expr, bool result);
|
|
||||||
//lcpp INF [0000] test: macro name but used as C declaration in:STATIC int (test)(const char *file, int line, const char *expr, bool result);
|
|
||||||
//lcpp INF [0000] test: macro name but used as C declaration in: int (test)(const char *file, int line, const char *expr, bool result);
|
|
||||||
//lcpp INF [0000] vec2: macro name but used as C declaration in:API vec2 ui_get_dims();
|
//lcpp INF [0000] vec2: macro name but used as C declaration in:API vec2 ui_get_dims();
|
||||||
//lcpp INF [0000] vec2: macro name but used as C declaration in:STATIC vec2 ui_get_dims();
|
//lcpp INF [0000] vec2: macro name but used as C declaration in:STATIC vec2 ui_get_dims();
|
||||||
//lcpp INF [0000] vec2: macro name but used as C declaration in: vec2 ui_get_dims();
|
//lcpp INF [0000] vec2: macro name but used as C declaration in: vec2 ui_get_dims();
|
||||||
|
@ -3091,8 +3088,6 @@ typedef vec3i guid;
|
||||||
void trap_on_abort(int signal);
|
void trap_on_abort(int signal);
|
||||||
void trap_on_debug(int signal);
|
void trap_on_debug(int signal);
|
||||||
int (PANIC)(const char *error, const char *file, int line);
|
int (PANIC)(const char *error, const char *file, int line);
|
||||||
int (PRINTF)(const char *text, const char *stack, const char *file, int line, const char *function);
|
|
||||||
int (test)(const char *file, int line, const char *expr, bool result);
|
|
||||||
enum PANEL_FLAGS {
|
enum PANEL_FLAGS {
|
||||||
PANEL_OPEN = 1,
|
PANEL_OPEN = 1,
|
||||||
};
|
};
|
||||||
|
|
|
@ -17713,11 +17713,16 @@ API void trap_on_debug(int signal); // helper util
|
||||||
#define PANIC(...) PANIC(va(__VA_ARGS__), __FILE__, __LINE__) // die() ?
|
#define PANIC(...) PANIC(va(__VA_ARGS__), __FILE__, __LINE__) // die() ?
|
||||||
API int (PANIC)(const char *error, const char *file, int line);
|
API int (PANIC)(const char *error, const char *file, int line);
|
||||||
|
|
||||||
|
#if !ENABLE_RETAIL
|
||||||
#define PRINTF(...) PRINTF(va(__VA_ARGS__), 1[#__VA_ARGS__] == '!' ? callstack(+48) : "", __FILE__, __LINE__, __FUNCTION__)
|
#define PRINTF(...) PRINTF(va(__VA_ARGS__), 1[#__VA_ARGS__] == '!' ? callstack(+48) : "", __FILE__, __LINE__, __FUNCTION__)
|
||||||
API int (PRINTF)(const char *text, const char *stack, const char *file, int line, const char *function);
|
API int (PRINTF)(const char *text, const char *stack, const char *file, int line, const char *function);
|
||||||
|
|
||||||
#define test(expr) test(__FILE__,__LINE__,#expr,!!(expr))
|
#define test(expr) test(__FILE__,__LINE__,#expr,!!(expr))
|
||||||
API int (test)(const char *file, int line, const char *expr, bool result);
|
API int (test)(const char *file, int line, const char *expr, bool result);
|
||||||
|
#else
|
||||||
|
#define PRINTF(...)
|
||||||
|
#define test(expr)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLE_TESTS
|
#if ENABLE_TESTS
|
||||||
#define AUTOTEST AUTORUN
|
#define AUTOTEST AUTORUN
|
||||||
|
|
|
@ -62,11 +62,16 @@ API void trap_on_debug(int signal); // helper util
|
||||||
#define PANIC(...) PANIC(va(__VA_ARGS__), __FILE__, __LINE__) // die() ?
|
#define PANIC(...) PANIC(va(__VA_ARGS__), __FILE__, __LINE__) // die() ?
|
||||||
API int (PANIC)(const char *error, const char *file, int line);
|
API int (PANIC)(const char *error, const char *file, int line);
|
||||||
|
|
||||||
|
#if !ENABLE_RETAIL
|
||||||
#define PRINTF(...) PRINTF(va(__VA_ARGS__), 1[#__VA_ARGS__] == '!' ? callstack(+48) : "", __FILE__, __LINE__, __FUNCTION__)
|
#define PRINTF(...) PRINTF(va(__VA_ARGS__), 1[#__VA_ARGS__] == '!' ? callstack(+48) : "", __FILE__, __LINE__, __FUNCTION__)
|
||||||
API int (PRINTF)(const char *text, const char *stack, const char *file, int line, const char *function);
|
API int (PRINTF)(const char *text, const char *stack, const char *file, int line, const char *function);
|
||||||
|
|
||||||
#define test(expr) test(__FILE__,__LINE__,#expr,!!(expr))
|
#define test(expr) test(__FILE__,__LINE__,#expr,!!(expr))
|
||||||
API int (test)(const char *file, int line, const char *expr, bool result);
|
API int (test)(const char *file, int line, const char *expr, bool result);
|
||||||
|
#else
|
||||||
|
#define PRINTF(...)
|
||||||
|
#define test(expr)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLE_TESTS
|
#if ENABLE_TESTS
|
||||||
#define AUTOTEST AUTORUN
|
#define AUTOTEST AUTORUN
|
||||||
|
|
|
@ -3780,11 +3780,16 @@ API void trap_on_debug(int signal); // helper util
|
||||||
#define PANIC(...) PANIC(va(__VA_ARGS__), __FILE__, __LINE__) // die() ?
|
#define PANIC(...) PANIC(va(__VA_ARGS__), __FILE__, __LINE__) // die() ?
|
||||||
API int (PANIC)(const char *error, const char *file, int line);
|
API int (PANIC)(const char *error, const char *file, int line);
|
||||||
|
|
||||||
|
#if !ENABLE_RETAIL
|
||||||
#define PRINTF(...) PRINTF(va(__VA_ARGS__), 1[#__VA_ARGS__] == '!' ? callstack(+48) : "", __FILE__, __LINE__, __FUNCTION__)
|
#define PRINTF(...) PRINTF(va(__VA_ARGS__), 1[#__VA_ARGS__] == '!' ? callstack(+48) : "", __FILE__, __LINE__, __FUNCTION__)
|
||||||
API int (PRINTF)(const char *text, const char *stack, const char *file, int line, const char *function);
|
API int (PRINTF)(const char *text, const char *stack, const char *file, int line, const char *function);
|
||||||
|
|
||||||
#define test(expr) test(__FILE__,__LINE__,#expr,!!(expr))
|
#define test(expr) test(__FILE__,__LINE__,#expr,!!(expr))
|
||||||
API int (test)(const char *file, int line, const char *expr, bool result);
|
API int (test)(const char *file, int line, const char *expr, bool result);
|
||||||
|
#else
|
||||||
|
#define PRINTF(...)
|
||||||
|
#define test(expr)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLE_TESTS
|
#if ENABLE_TESTS
|
||||||
#define AUTOTEST AUTORUN
|
#define AUTOTEST AUTORUN
|
||||||
|
|
Loading…
Reference in New Issue