Exemple #1
0
 static int CallMethod(IntPtr L)
 {
     try
     {
         int        count = LuaDLL.lua_gettop(L);
         SDKManager obj   = (SDKManager)ToLua.CheckObject(L, 1, typeof(SDKManager));
         string     arg0  = ToLua.CheckString(L, 2);
         object[]   arg1  = ToLua.ToParamsObject(L, 3, count - 2);
         object[]   o     = obj.CallMethod(arg0, arg1);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }