Skip to content
Snippets Groups Projects
Commit 33c9a762 authored by rswindell's avatar rswindell
Browse files

Created a macro JSDOCSTR() which is used to eliminate static strings, used

only for JS documentation generation, from release (non-debug) builds.
parent ea5159a1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment