SynopsisOpen a JavaScript interpreter session. Prototype#include "ej.h" int ejOpenEngine(sym_fd_t variables, sym_fd_t functions); Parameters
DescriptionTo use JavaScript, you must first open an interpreter session with ejOpenEngine. JavaScript interpreters usually have their own variable and global function name space. To share a variable or function name space, pass a symbol table into ejOpenEngine in the variable or function parameters. If either of these parameters are set to NULL, the symbol table will be created automatically. Use ejCloseEngine to close the interpreter when finished. Return ValueHandle for the JavaScript interpreter. Exampleif (ejOpenEngine(NULL, NULL)< 0) { /* Can't open interpreter */ return -1; } Stability ClassificationStable. See Also |