3#include <Core/Scripting/DuktapeFunction.h>
4#include <Foundation/Memory/CommonAllocators.h>
6#ifdef BUILDSYSTEM_ENABLE_DUKTAPE_SUPPORT
9using duk_context = duk_hthread;
10using duk_c_function = int (*)(duk_context*);
13class PL_CORE_DLL plDuktapeContext :
public plDuktapeHelper
15 PL_DISALLOW_COPY_AND_ASSIGN(plDuktapeContext);
25 void EnableModuleSupport(duk_c_function moduleSearchFunction);
30 void InitializeContext();
31 void DestroyContext();
33 static void FatalErrorHandler(
void* pUserData,
const char* szMsg);
34 static void* DukAlloc(
void* pUserData,
size_t size);
35 static void* DukRealloc(
void* pUserData,
void* pPointer,
size_t size);
36 static void DukFree(
void* pUserData,
void* pPointer);
39 bool m_bInitializedModuleSupport =
false;
42# if PL_ENABLED(PL_COMPILE_FOR_DEBUG)
Policy based allocator implementation of the plAllocator interface.
Definition AllocatorWithPolicy.h:19
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34