예제 #1
0
        public static int decompileFunction(LuaState L)
        {
            Decompiler.Decompiler d = new Decompiler.Decompiler();
            Lua.Proto             p = Pget(L, 1);
            if (p == null)
            {
                lua_pushstring(L, "not a Lua function");
            }
            string s = d.Decompile(p);

            //Console.WriteLine(s);
            lua_pushstring(L, s);
            return(1);
        }
예제 #2
0
 public static int decompileFunction(LuaState L)
 {
     Decompiler.Decompiler d = new Decompiler.Decompiler();
     Lua.Proto p = Pget(L, 1);
     if (p == null)
     {
         lua_pushstring(L, "not a Lua function");
         return 1;
     }
     string s = d.Decompile(p);
     //Console.WriteLine(s);
     lua_pushstring(L, s);
     return 1;
 }