What is MuJS?
@@ -80,4 +95,12 @@ The default build is sandboxed with very restricted access to resources. MuJS is free open source software distributed under the ISC license. +
diff --git a/docs/about.html b/docs/about.html index db5ef5e..66a8c5f 100644 --- a/docs/about.html +++ b/docs/about.html @@ -2,10 +2,25 @@
-@@ -80,4 +95,12 @@ The default build is sandboxed with very restricted access to resources. MuJS is free open source software distributed under the ISC license. +
+typedef void (*js_Report)(js_State *J, const char *message); + +void js_setreport(js_State *J, js_Report report); ++ +
+Set a callback function for reporting various warnings +and garbage collection statistics. +
@@ -179,7 +204,8 @@ js_gc(js_State *J, int report);Force a garbage collection pass. -If the report argument is non-zero, print a summary of garbage collection statistics to stdout. +If the report argument is non-zero, send a summary of garbage collection statistics to +the report callback function.
Loading and compiling scripts
@@ -658,4 +684,12 @@ void js_unref(js_State *J, const char *ref);WIP: Delete the reference from the registry. +