Exemplo n.º 1
0
        public MultiValue dostring(string s)
        {
            int top = LuaDll.lua_gettop(L);
            int ret = LuaDll.luaL_dostring(L, s);

            if (ret != 0)
            {
                string err = LuaDll.lua_tostring(L, -1);
                Console.WriteLine("ERROR: " + err);
                LuaDll.lua_pop(L, 1);
            }
            else
            {
                int newtop = LuaDll.lua_gettop(L);
                return(getValues(top + 1, newtop - top));
            }

            return(null);
        }