Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef int (*lls_t)(lua_State *, const char *);
- typedef int (*lpc_t)(lua_State *, int, int, int);
- int RunLua(lua_State *L, char *str)
- {
- lls_t LuaLoadStr = (lls_t)GetProcAddress(GetModuleHandle("lua_shared.dll"), "luaL_loadstring");
- lpc_t LuaPCall = (lpc_t)GetProcAddress(GetModuleHandle("lua_shared.dll"), "lua_pcall");
- return (LuaLoadStr(L, str) || LuaPCall(L, 0, LUA_MULTRET, 0));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement