/[ascend]/trunk/test/assertimpl.c
ViewVC logotype

Diff of /trunk/test/assertimpl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 59 by jds, Sun Oct 30 01:38:20 2005 UTC revision 60 by jds, Mon Oct 31 03:39:15 2005 UTC
# Line 39  void enable_assert_longjmp(int TRUE_or_F Line 39  void enable_assert_longjmp(int TRUE_or_F
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    
# Line 55  void _RTLENTRY _EXPFUNC _assert(char *co Line 56  void _RTLENTRY _EXPFUNC _assert(char *co
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) {

Legend:
Removed from v.59  
changed lines
  Added in v.60

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22