Search completed in 0.87 seconds.
10 results for "JS_FS_END":
JSFunctionSpec
MozillaProjectsSpiderMonkeyJSAPI referenceJSFunctionSpec
to define an array of jspropertyspec, use js_fs, js_fn, js_sym_fn, js_fninfo, js_self_hosted_fn, js_self_hosted_sym_fn, js_sym_fnspec, js_fnspec, and js_fs_end.
... see also mxr id search for jsfunctionspec jspropertyspec jsnative js_fs js_fn js_sym_fn js_fninfo js_self_hosted_fn js_self_hosted_sym_fn js_sym_fnspec js_fnspec js_fs_end property attributes js_definefunctions js_initclass ...
JS_FS
MozillaProjectsSpiderMonkeyJSAPI referenceJS FS
// added in spidermonkey 31 #define js_fs_end ...
...see also mxr id search for js_fs mxr id search for js_fn mxr id search for js_sym_fn mxr id search for js_fninfo mxr id search for js_self_hosted_fn mxr id search for js_self_hosted_sym_fn mxr id search for js_sym_fnspec mxr id search for js_fnspec mxr id search for js_fs_end jsfunctionspec js_defineproperties js_initclass bug 775788 - added js_fninfo.
JS_InitClass
MozillaProjectsSpiderMonkeyJSAPI referenceJS InitClass
fs jsfunctionspec * either null or a pointer to the first element of an array of jsfunctionspecs, terminated by js_fs_end.
...(this is the nearest javascript equivalent of public static member variables in c++ or public static fields in java.) static_fs jsfunctionspec * either null or a pointer to the first element of an array of jsfunctionspecs, terminated by js_fs_end.
How to embed the JavaScript engine
MozillaProjectsSpiderMonkeyHow to embed the JavaScript engine
*/ js_fs_end }; js_fs_end terminates the table.
JSAPI User Guide
MozillaProjectsSpiderMonkeyJSAPI User Guide
static jsfunctionspec myjs_global_functions[] = { js_fs("rand", myjs_rand, 0, 0), js_fs("srand", myjs_srand, 0, 0), js_fs("system", myjs_system, 1, 0), js_fs_end }; ...
JS::NewFunctionFromSpec
MozillaProjectsSpiderMonkeyJSAPI referenceJS::NewFunctionFromSpec
*fs must not be js_fs_end.
JS::PersistentRooted
MozillaProjectsSpiderMonkeyJSAPI referenceJS::PersistentRooted
js::rootedvalue val(cx, persistentval.ref()); // or // js::rootedvalue val(cx, *persistentval); // [spidermonkey 38] // js::rootedvalue val(cx, persistentval); args.rval().set(val); return true; } static const jsfunctionspec functions[] = { js_fn("getpersistent", getpersistent, 1, 0), js_fn("setpersistent", setpersistent, 0, 0), js_fs_end }; int main(int argc, const char* argv[]) { // initialize runtime // ...
JS_DefineFunctions
MozillaProjectsSpiderMonkeyJSAPI referenceJS DefineFunctions
(the macro js_fs_end can be used for the last element.) js_definefunctions creates one function for each non-zero element in the array.
JSAPI reference
MozillaProjectsSpiderMonkeyJSAPI reference
api 16 adding native properties and methods to classes: jsnative struct jsfunctionspec js_fs added in spidermonkey 1.8 js_fn added in spidermonkey 1.8 js_sym_fn added in spidermonkey 38 js_fninfo added in spidermonkey 17 js_self_hosted_fn added in spidermonkey 31 js_self_hosted_sym_fn added in spidermonkey 38 js_sym_fnspec added in spidermonkey 38 js_fnspec added in spidermonkey 31 js_fs_end added in spidermonkey 1.8 struct jspropertyspec js_psg added in spidermonkey 17 js_psgs added in spidermonkey 17 js_self_hosted_get added in spidermonkey 31 js_self_hosted_getset added in spidermonkey 31 js_ps_end added in spidermonkey 17 jsfastnative added in spidermonkey 1.8 obsolete since javascript 1.8.5 the behavior of a jsclass can be customized using these flags: jsclass.fla...
SpiderMonkey 1.8
MozillaProjectsSpiderMonkeyReleases1.8
new macros js_fs, js_fn, and js_fs_end are recommended for populating jsfunctionspec arrays.