static int GetObjList(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); System.Collections.Generic.List <object> o = HeapObjectPool.GetObjList(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetObjList(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); System.Collections.Generic.List <object> o = HeapObjectPool.GetObjList(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }