9 #include <vlutil/vlFilename.h>
13 #include <vlutil/vlSmartPointers.h>
28 virtual lua_State* getLuaState(
bool forBackgroundProcess =
false);
31 virtual bool loadModule(lua_State* L,
const std::string& moduleName);
34 static lua_State* createLuaState(
const std::vector<std::string>& scriptPaths,
bool forBackgroundProcess =
false);
37 static bool initializeVRFLuaExtensions(lua_State* L,
const std::vector<std::string>& scriptPaths,
bool forBackgroundProcess =
false);
45 virtual std::string findLuaModuleFile(
const std::string& filename);
48 virtual void saveBytecodeChunk(lua_State* L,
const std::string& chunkName);
60 virtual void createLuaStates(
unsigned numStates);
65 static int luaBytecodeSaveCb(lua_State *L,
const void* p,
size_t sz,
void* ud);
67 static const char* luaBytecodeLoadCb(lua_State *L,
void *ud,
size_t *size);