|
|
1.1 root 1: #ifndef _JS_REQUEST_H_
2: #define _JS_REQUEST_H_
3:
4: //#define DEBUG_JS_REQUESTS
5:
6: #ifdef DEBUG_JS_REQUESTS
7: #ifdef __cplusplus
8: extern "C" {
9: #endif
10: void js_debug_beginrequest(JSContext *cx, const char *file, unsigned long line);
11: void js_debug_endrequest(JSContext *cx, const char *file, unsigned long line);
12: jsrefcount js_debug_suspendrequest(JSContext *cx, const char *file, unsigned long line);
13: void js_debug_resumerequest(JSContext *cx, jsrefcount rc, const char *file, unsigned long line);
14: #ifdef __cplusplus
15: }
16: #endif
17:
18: #define JS_BEGINREQUEST(cx) js_debug_beginrequest(cx, __FILE__, __LINE__)
19: #define JS_ENDREQUEST(cx) js_debug_endrequest(cx, __FILE__, __LINE__)
20: #define JS_SUSPENDREQUEST(cx) js_debug_suspendrequest(cx, __FILE__, __LINE__)
21: #define JS_RESUMEREQUEST(cx, rf) js_debug_resumerequest(cx, rf, __FILE__, __LINE__)
22: #else
23: #define JS_BEGINREQUEST(cx) JS_BeginRequest(cx);
24: #define JS_ENDREQUEST(cx) JS_EndRequest(cx);
25: #define JS_SUSPENDREQUEST(cx) JS_SuspendRequest(cx);
26: #define JS_RESUMEREQUEST(cx, rf) JS_ResumeRequest(cx, rf);
27: #endif
28:
29: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.