mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
d6ecf895ce
create smjs_init_global_object to initialise the global.
14 lines
433 B
C
14 lines
433 B
C
#ifndef EL__SCRIPTING_SMJS_GLOBAL_OBJECT_H
|
|
#define EL__SCRIPTING_SMJS_GLOBAL_OBJECT_H
|
|
|
|
#include "ecmascript/spidermonkey/util.h"
|
|
|
|
/* The root of the object hierarchy. If object 'foo' has this as its parent,
|
|
* you can use foo's method and properties with 'foo.<method|property>'. */
|
|
extern JSObject *smjs_global_object;
|
|
|
|
/* Create the global object and assign it to smjs_global_object. */
|
|
void smjs_init_global_object(void);
|
|
|
|
#endif
|