ELinks 0.18.0
mujs.h File Reference
#include <mujs.h>
Include dependency graph for mujs.h:

Functions

void * mujs_get_interpreter (struct ecmascript_interpreter *interpreter)
void mujs_put_interpreter (struct ecmascript_interpreter *interpreter)
void mujs_eval (struct ecmascript_interpreter *interpreter, struct string *code, struct string *ret)
char * mujs_eval_stringback (struct ecmascript_interpreter *interpreter, struct string *code)
int mujs_eval_boolback (struct ecmascript_interpreter *interpreter, struct string *code)
void mujs_call_function (struct ecmascript_interpreter *interpreter, const char *fun, struct string *ret)
void addmethod (js_State *J, const char *name, js_CFunction fun, int n)
void addproperty (js_State *J, const char *name, js_CFunction getfun, js_CFunction setfun)

Variables

struct module mujs_module

Function Documentation

◆ addmethod()

void addmethod ( js_State * J,
const char * name,
js_CFunction fun,
int n )

◆ addproperty()

void addproperty ( js_State * J,
const char * name,
js_CFunction getfun,
js_CFunction setfun )

◆ mujs_call_function()

void mujs_call_function ( struct ecmascript_interpreter * interpreter,
const char * fun,
struct string * ret )

◆ mujs_eval()

void mujs_eval ( struct ecmascript_interpreter * interpreter,
struct string * code,
struct string * ret )

◆ mujs_eval_boolback()

int mujs_eval_boolback ( struct ecmascript_interpreter * interpreter,
struct string * code )

◆ mujs_eval_stringback()

char * mujs_eval_stringback ( struct ecmascript_interpreter * interpreter,
struct string * code )

◆ mujs_get_interpreter()

void * mujs_get_interpreter ( struct ecmascript_interpreter * interpreter)

◆ mujs_put_interpreter()

void mujs_put_interpreter ( struct ecmascript_interpreter * interpreter)

Variable Documentation

◆ mujs_module

struct module mujs_module
extern