Ejemplo n.º 1
0
        public static int luaL_dostring(IntPtr luaState, string chunk)
        {
            int result = LuaNativeMethods.luaL_loadstring(luaState, chunk);

            if (result != 0)
            {
                return(result);
            }

            return(LuaNativeMethods.lua_pcall(luaState, 0, -1, 0));
        }