diff --git a/src/sbbs3/sbbs.h b/src/sbbs3/sbbs.h index c87323f174451c3d2f95909fce126948942d20fa..1e8b8f8eaa1662427c11ba2029d69b43a16ad54d 100644 --- a/src/sbbs3/sbbs.h +++ b/src/sbbs3/sbbs.h @@ -840,9 +840,17 @@ extern "C" { #define JSTYPE_ARRAY JSTYPE_LIMIT + #ifdef _DEBUG /* String compiled into debug build only, for JS documentation generation */ + #define JSDOCSTR(s) s + #else + #define JSDOCSTR(s) "" + #endif + /* main.cpp */ DLLEXPORT int DLLCALL js_MethodsToFunctions(jsMethodSpec meth[], JSFunctionSpec func[]); DLLEXPORT JSBool DLLCALL js_DefineMethods(JSContext* cx, JSObject* obj, jsMethodSpec *fs); + DLLEXPORT JSBool DLLCALL js_CreateArrayOfStrings(JSContext* cx, JSObject* parent + ,const char* name, char* str[], uintN flags); /* js_global.c */ DLLEXPORT JSObject* DLLCALL js_CreateGlobalObject(JSContext* cx, scfg_t* cfg);