示例#1
0
 static int CallMethod(IntPtr L)
 {
     try
     {
         int count = LuaDLL.lua_gettop(L);
         LuaFramework.LuaManager obj = (LuaFramework.LuaManager)ToLua.CheckObject <LuaFramework.LuaManager>(L, 1);
         string   arg0 = ToLua.CheckString(L, 2);
         string   arg1 = ToLua.CheckString(L, 3);
         object[] arg2 = ToLua.ToParamsObject(L, 4, count - 3);
         obj.CallMethod(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }