Next iteration on creating a documentation for the Javascript module.

This commit is contained in:
Oliver Buchtala 2014-02-13 19:25:16 +01:00
commit 1e34ecdc31
4 changed files with 203 additions and 2325 deletions

View file

@ -23,6 +23,17 @@ bool js_template_enable_debug = false;
#define DTOR "dtor"
#define ARGCOUNT "wrap:argc"
// keys for global state variables
#define CREATE_NAMESPACES "create_namespaces"
#define REGISTER_NAMESPACES "register_namespaces"
#define INITIALIZER "initializer"
// keys for class scoped state variables
#define MEMBER_VARIABLES "member_variables"
#define MEMBER_FUNCTIONS "member_functions"
#define STATIC_FUNCTIONS "static_functions"
#define STATIC_VARIABLES "static_variables"
/**
* A convenience class to manage state variables for emitters.
* The implementation delegates to swig Hash DOHs and provides
@ -274,15 +285,15 @@ protected:
File *f_wrappers;
};
/**********************************************************************
* JAVASCRIPT: swig module implementation
**********************************************************************/
/* factory methods for concrete JSEmitters: */
JSEmitter *swig_javascript_create_JSCEmitter();
JSEmitter *swig_javascript_create_V8Emitter();
/**********************************************************************
* JAVASCRIPT: swig module implementation
**********************************************************************/
class JAVASCRIPT:public Language {
public:
@ -1411,17 +1422,6 @@ private:
};
// keys for global state variables
#define CREATE_NAMESPACES "create_namespaces"
#define REGISTER_NAMESPACES "register_namespaces"
#define INITIALIZER "initializer"
// keys for class scoped state variables
#define MEMBER_VARIABLES "member_variables"
#define MEMBER_FUNCTIONS "member_functions"
#define STATIC_FUNCTIONS "static_functions"
#define STATIC_VARIABLES "static_variables"
JSCEmitter::JSCEmitter()
: JSEmitter(),
NULL_STR(NewString("NULL")),