private void createIndexingMetaFunction(IntPtr luaState) { LuaDLL.lua_pushstring(luaState, "luaNet_indexfunction"); LuaDLL.luaL_dostring(luaState, MetaFunctions.luaIndexFunction); LuaDLL.lua_rawset(luaState, LuaIndexes.LUA_REGISTRYINDEX); }
/// <summary>DEPRECATED - use luaL_dostring(IntPtr luaState, string chunk) instead!</summary> public static int lua_dostring(IntPtr luaState, string chunk) { return(LuaDLL.luaL_dostring(luaState, chunk)); }
public int LuaDoString(string chunk) { return(LuaDLL.luaL_dostring(L, chunk)); }