39 |
} |
} |
40 |
|
|
41 |
/* Override implementation of assert using the signature of the relevant compiler */ |
/* Override implementation of assert using the signature of the relevant compiler */ |
42 |
|
#ifdef __WIN32__ |
43 |
#if defined(__GNUC__) || defined(__MINGW32_VERSION) |
#if defined(__GNUC__) || defined(__MINGW32_VERSION) |
44 |
_CRTIMP void __cdecl _assert(const char *cond, const char *file, int line) |
_CRTIMP void __cdecl _assert(const char *cond, const char *file, int line) |
45 |
|
|
56 |
#error Unrecognized compiler. |
#error Unrecognized compiler. |
57 |
|
|
58 |
#endif |
#endif |
59 |
|
#else /* !__WIN32__ */ |
60 |
|
#if defined(__GNUC__) |
61 |
|
void __assert_fail (const char *cond, const char *file, |
62 |
|
unsigned int line, const char *__function) |
63 |
|
/* __THROW __attribute__ ((__noreturn__)) */ |
64 |
|
#else |
65 |
|
#error Unrecognized compiler. |
66 |
|
#endif |
67 |
|
#endif /* __WIN32__ */ |
68 |
{ |
{ |
69 |
g_assert_status = ast_failed; |
g_assert_status = ast_failed; |
70 |
if (TRUE == f_use_longjump) { |
if (TRUE == f_use_longjump) { |