forked from KolibriOS/kolibrios
libc testsuite + fixes
git-svn-id: svn://kolibrios.org@6433 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
18
programs/develop/ktcc/trunk/libc/include/assert.h
Normal file
18
programs/develop/ktcc/trunk/libc/include/assert.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#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
|
Reference in New Issue
Block a user