mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-13 10:27:12 +03:00
18 lines
382 B
C
18 lines
382 B
C
|
#ifndef __ASSERT_H
|
||
|
|
||
|
#ifdef NDEBUG
|
||
|
# define assert(a) (void)0
|
||
|
#else
|
||
|
# define assert(a) ((a) ? (void)0 : __assert_func (__FILE__, __LINE__, #a))
|
||
|
#endif
|
||
|
|
||
|
#ifdef NDEBUG
|
||
|
# define TRACE(s) void(0)
|
||
|
#else
|
||
|
# define TRACE(s) (__trace_func (__FILE__, __LINE__, #s))
|
||
|
#endif
|
||
|
|
||
|
void __assert_func(char*,int,char*);
|
||
|
void __trace_func(char*,int,char*);
|
||
|
|
||
|
#endif
|