/[jscoverage]/trunk/js/jsutil.h
ViewVC logotype

Diff of /trunk/js/jsutil.h

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

revision 332 by siliconforks, Thu Oct 23 19:03:33 2008 UTC revision 460 by siliconforks, Sat Sep 26 23:15:22 2009 UTC
# Line 46  Line 46 
46    
47  JS_BEGIN_EXTERN_C  JS_BEGIN_EXTERN_C
48    
49  #ifdef DEBUG  /*
50     * JS_Assert is present even in release builds, for the benefit of applications
51     * that build DEBUG and link against a non-DEBUG SpiderMonkey library.
52     */
53  extern JS_PUBLIC_API(void)  extern JS_PUBLIC_API(void)
54  JS_Assert(const char *s, const char *file, JSIntn ln);  JS_Assert(const char *s, const char *file, JSIntn ln);
55    
56    #ifdef DEBUG
57    
58  #define JS_ASSERT(expr)                                                       \  #define JS_ASSERT(expr)                                                       \
59      ((expr) ? (void)0 : JS_Assert(#expr, __FILE__, __LINE__))      ((expr) ? (void)0 : JS_Assert(#expr, __FILE__, __LINE__))
60    
# Line 87  Line 91 
91      extern void js_static_assert(int arg[(condition) ? 1 : -1])      extern void js_static_assert(int arg[(condition) ? 1 : -1])
92  #endif  #endif
93    
94    #define JS_STATIC_ASSERT_IF(cond, expr) JS_STATIC_ASSERT(!(cond) || (expr))
95    
96  /*  /*
97   * Abort the process in a non-graceful manner. This will cause a core file,   * Abort the process in a non-graceful manner. This will cause a core file,
98   * call to the debugger or other moral equivalent as well as causing the   * call to the debugger or other moral equivalent as well as causing the
# Line 144  Line 150 
150  #endif /* JS_BASIC_STATS */  #endif /* JS_BASIC_STATS */
151    
152    
153  #ifdef XP_UNIX  #if defined(DEBUG_notme) && defined(XP_UNIX)
154    
155  typedef struct JSCallsite JSCallsite;  typedef struct JSCallsite JSCallsite;
156    
# Line 159  Line 165 
165      void        *handy;      void        *handy;
166  };  };
167    
168  extern JSCallsite *JS_Backtrace(int skip);  extern JS_FRIEND_API(JSCallsite *)
169    JS_Backtrace(int skip);
170    
171    extern JS_FRIEND_API(void)
172    JS_DumpBacktrace(JSCallsite *trace);
173    
174  #endif  #endif
175    

Legend:
Removed from v.332  
changed lines
  Added in v.460

  ViewVC Help
Powered by ViewVC 1.1.24