DynXX-C
Loading...
Searching...
No Matches
JS.h
Go to the documentation of this file.
1#pragma once
2
3#include "Types.h"
4
6
14bool dynxx_js_loadF(const char *file, bool is_module);
15
24bool dynxx_js_loadS(const char *script, const char *name, bool is_module);
25
34bool dynxx_js_loadB(const byte *bytes, size_t len, bool is_module);
35
44const char *dynxx_js_call(const char *func, const char *params, bool await);
45
50void dynxx_js_set_msg_callback(const char *(*const callback)(const char *msg));
51
DYNXX_EXTERN_C_BEGIN bool dynxx_js_loadF(const char *file, bool is_module)
Load JS file.
const char * dynxx_js_call(const char *func, const char *params, bool await)
Call JS function.
bool dynxx_js_loadS(const char *script, const char *name, bool is_module)
Load JS Script.
bool dynxx_js_loadB(const byte *bytes, size_t len, bool is_module)
Load JS ByteCode.
void dynxx_js_set_msg_callback(const char *(*const callback)(const char *msg))
Set JS msg callback.
#define DYNXX_EXTERN_C_BEGIN
Definition Macro.h:13
#define DYNXX_EXTERN_C_END
Definition Macro.h:14