|
|
1.1 ! root 1: /* $Id: js_rtpool.h,v 1.4 2010/04/02 23:56:25 deuce Exp $ */ ! 2: ! 3: #ifndef _JS_RTPOOL_H_ ! 4: #define _JS_RTPOOL_H_ ! 5: ! 6: #ifdef __unix__ ! 7: #define XP_UNIX ! 8: #else ! 9: #define XP_PC ! 10: #define XP_WIN ! 11: #endif ! 12: #include <jsapi.h> ! 13: ! 14: #ifdef DLLEXPORT ! 15: #undef DLLEXPORT ! 16: #endif ! 17: #ifdef DLLCALL ! 18: #undef DLLCALL ! 19: #endif ! 20: #ifdef _WIN32 ! 21: #ifdef SBBS_EXPORTS ! 22: #define DLLEXPORT __declspec(dllexport) ! 23: #else ! 24: #define DLLEXPORT __declspec(dllimport) ! 25: #endif ! 26: #ifdef __BORLANDC__ ! 27: #define DLLCALL __stdcall ! 28: #else ! 29: #define DLLCALL ! 30: #endif ! 31: #else /* !_WIN32 */ ! 32: #define DLLEXPORT ! 33: #define DLLCALL ! 34: #endif ! 35: ! 36: #if defined(__cplusplus) ! 37: extern "C" { ! 38: #endif ! 39: DLLEXPORT JSRuntime * DLLCALL jsrt_GetNew(int maxbytes, unsigned long timeout, const char *filename, long line); ! 40: DLLEXPORT void DLLCALL jsrt_Release(JSRuntime *); ! 41: DLLEXPORT void DLLCALL jsrt_TriggerAll(void); ! 42: #if defined(__cplusplus) ! 43: } ! 44: #endif ! 45: ! 46: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.