File:  [Synchronet] / sbbs / src / sbbs3 / js_request.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:43:46 2018 UTC (8 years, 3 months ago) by root
Branches: digitaldynamics, MAIN
CVS tags: v_315b, HEAD
3.15b

#ifndef _JS_REQUEST_H_
#define _JS_REQUEST_H_

//#define DEBUG_JS_REQUESTS

#ifdef DEBUG_JS_REQUESTS
#ifdef __cplusplus
extern "C" {
#endif
void js_debug_beginrequest(JSContext *cx, const char *file, unsigned long line);
void js_debug_endrequest(JSContext *cx, const char *file, unsigned long line);
jsrefcount js_debug_suspendrequest(JSContext *cx, const char *file, unsigned long line);
void js_debug_resumerequest(JSContext *cx, jsrefcount rc, const char *file, unsigned long line);
#ifdef __cplusplus
}
#endif

#define JS_BEGINREQUEST(cx)			js_debug_beginrequest(cx, __FILE__, __LINE__)
#define JS_ENDREQUEST(cx)			js_debug_endrequest(cx, __FILE__, __LINE__)
#define JS_SUSPENDREQUEST(cx)		js_debug_suspendrequest(cx, __FILE__, __LINE__)
#define JS_RESUMEREQUEST(cx, rf)	js_debug_resumerequest(cx, rf, __FILE__, __LINE__)
#else
#define JS_BEGINREQUEST(cx)	JS_BeginRequest(cx);
#define JS_ENDREQUEST(cx)	JS_EndRequest(cx);
#define JS_SUSPENDREQUEST(cx)	JS_SuspendRequest(cx);
#define JS_RESUMEREQUEST(cx, rf)	JS_ResumeRequest(cx, rf);
#endif

#endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.