luaL_dostring() public static method

public static luaL_dostring ( IntPtr luaState, string chunk ) : int
luaState System.IntPtr
chunk string
return int
コード例 #1
0
 private void createIndexingMetaFunction(IntPtr luaState)
 {
     LuaDLL.lua_pushstring(luaState, "luaNet_indexfunction");
     LuaDLL.luaL_dostring(luaState, MetaFunctions.luaIndexFunction);
     LuaDLL.lua_rawset(luaState, LuaIndexes.LUA_REGISTRYINDEX);
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 public int LuaDoString(string chunk)
 {
     return(LuaDLL.luaL_dostring(L, chunk));
 }