Skip to content
Snippets Groups Projects
js_rtpool.h 812 B
Newer Older
/* $Id: js_rtpool.h,v 1.6 2019/03/22 21:28:27 rswindell Exp $ */

#ifndef _JS_RTPOOL_H_
#define _JS_RTPOOL_H_

#ifdef __unix__
	#define XP_UNIX
#else
	#define XP_PC
	#define XP_WIN
#endif
#include <jsapi.h>

#ifdef DLLEXPORT
#undef DLLEXPORT
#endif
#ifdef DLLCALL
#undef DLLCALL
#endif
#ifdef _WIN32
	#ifdef SBBS_EXPORTS
		#define DLLEXPORT   __declspec(dllexport)
		#define DLLEXPORT   __declspec(dllimport)
#else   /* !_WIN32 */
	#define DLLEXPORT
	#define DLLCALL
#endif

#if defined(__cplusplus)
extern "C" {
#endif
DLLEXPORT JSRuntime * DLLCALL jsrt_GetNew(int maxbytes, unsigned long timeout, const char *filename, long line);
DLLEXPORT void DLLCALL jsrt_Release(JSRuntime *);
#if defined(__cplusplus)
}
#endif

#endif