mongoose/docs/c-api/net.h/mg_enable_javascript.md
2016-07-22 15:04:58 +01:00

444 B

title decl_name symbol_kind signature
mg_enable_javascript() mg_enable_javascript func enum v7_err mg_enable_javascript(struct mg_mgr *m, struct v7 *v7, const char *init_js_file_name);

Enables server-side JavaScript scripting. Requires a -DMG_ENABLE_JAVASCRIPT compilation flag and V7 engine sources. V7 instance must not be destroyed during manager's lifetime. Returns a V7 error.