5 #ifndef _INC_cJSXEngine_H
6 #define _INC_cJSXEngine_H
67 cJSXClassPtr FindorCreateJSXClass(
const char* pszClassName);
81 return m_pjsRuntime != nullptr ;
98 static void _cdecl ErrorReporter(
JSContext* pjsCx,
const LOGCHAR_t* message, JSErrorReport* report);
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYJS_LINK
Definition: GrayJSX.h:27
Definition: cJSObject.h:56
Definition: cJSObject.h:47
Definition: cJSObject.h:117
Definition: cJSXClass.h:35
Definition: cJSXEngine.h:35
cArraySortHash< cJSXObject > m_aJSXObjects
cache of all cJSXObjectPtr = JSObject/cXObject created.
Definition: cJSXEngine.h:56
cJSXContextPtr m_pJSXContextDef
the default/global context. used to create m_pJSXObjGlobal
Definition: cJSXEngine.h:47
static GRAY_JSBool _cdecl Construct(JSContext *pjsCx, JSObject *pjsObj, GRAY_uintN argc, GRAY_jsval *argv, GRAY_jsval *rval)
bool IsInitJSX() const noexcept
Definition: cJSXEngine.h:78
static GRAY_JSBool _cdecl Resolve(JSContext *pjsCx, JSObject *pjsObj, GRAY_jsval id, GRAY_uintN flags, JSObject **ppjsObj)
UNITTEST_FRIEND(cJSXEngine)
cThreadLockCount m_Lock
Definition: cJSXEngine.h:59
static GRAY_JSBool _cdecl AddProperty(JSContext *pjsCx, JSObject *pjsObj, GRAY_jsval idPropRaw, GRAY_jsval *vp)
cJSXClassPtr m_pJSXClassBase
object to ref the common base class. XObject
Definition: cJSXEngine.h:58
cArrayRef< cJSXClass > m_aJSXClasses
cache of cJSXClass for each interface.
Definition: cJSXEngine.h:50
static GRAY_JSBool _cdecl DelProperty(JSContext *pjsCx, JSObject *pjsObj, GRAY_jsval idPropRaw, GRAY_jsval *vp)
cJSRuntime * m_pjsRuntime
library reference.
Definition: cJSXEngine.h:46
cThreadLocalTypeSmart< cJSXContext > m_aJSXContexts
cache of all cJSXContext being used and not used.
Definition: cJSXEngine.h:53
Definition: cScriptableInterface.h:300
Definition: cThreadLocal.h:196
Definition: cVariant.h:26
Definition: cXObjPack.h:110
Definition: cXObject.h:78
Definition: cArrayRef.h:21
Definition: cArraySortRef.h:60
Definition: cSingletonPtr.h:20
Definition: cThreadLock.h:498
Definition: cJSObject.h:36
cJSXClass * cJSXClassPtr
Definition: cJSXClass.h:105
unsigned int GRAY_uintN
Definition: GrayJSX.h:55
int GRAY_JSBool
Definition: GrayJSX.h:53
cRefPtr< cJSXContext > cJSXContextPtr
Definition: cJSXContext.h:39
long GRAY_jsval
match this to 'jsval' so i don't have to use the "#include "jsapi.h""
Definition: GrayJSX.h:50
cRefPtr< cJSXObject > cJSXObjectPtr
Definition: cJSXEngine.h:29
class __DECL_IMPORT cXObject
Definition: cXObject.h:33
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22
char LOGCHAR_t
always just use UTF8 for logs, don't bother with UNICODE.
Definition: cLogLevel.h:17
Definition: cJSObject.h:27
Definition: cJSObject.h:28