mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-18 21:02:34 +03:00
6496d04506
This version of menuetlibc was taken from revision 4743, right before I made any changes git-svn-id: svn://kolibrios.org@4973 a494cfbc-eb01-0410-851d-a64ba20cac60
32 lines
820 B
C
32 lines
820 B
C
/* Copyright (C) 1997 DJ Delorie, see COPYING.DJ for details */
|
|
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
|
|
|
|
#undef assert
|
|
#undef unimpl
|
|
|
|
#define assert(test) ((void)((test)||(__dj_assert(#test,__FILE__,__LINE__),0)))
|
|
#define unimpl() __dj_unimp("Called unimplemented function in file \"" __FILE__ "\"\n")
|
|
|
|
#ifndef __dj_include_assert_h_
|
|
#define __dj_include_assert_h_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef _MSC_VER
|
|
void __declspec(noreturn) __dj_assert(const char *,const char *,int);
|
|
void __declspec(noreturn) __dj_unimp(const char *fn);
|
|
#else
|
|
void __dj_assert(const char *,const char *,int) __attribute__((__noreturn__));
|
|
void __dj_unimp(const char *fn) __attribute__((__noreturn__));
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* !__dj_include_assert_h_ */
|
|
|
|
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
|