public void Push(IntPtr ptr, Array o) { int index = AllocID(ptr, o); if (index < 0) { return; } LuaNativeMethods.luaS_pushobject(ptr, index, "LuaArray", true, cacheRef); }
public void Push(IntPtr ptr, object o, bool checkReflect) { int index = AllocID(ptr, o); if (index < 0) { return; } bool gco = IsGcObject(o); #if SLUA_CHECK_REFLECTION int isReflect = LuaNativeMethods.luaS_pushobject(ptr, index, GetAQName(o), gco, cacheRef); if (isReflect != 0 && checkReflect && !(o is LuaClassObject)) { Logger.LogWarning(string.Format("{0} not exported, using reflection instead", o.ToString())); } #else LuaNativeMethods.luaS_pushobject(ptr, index, GetAQName(o), gco, cacheRef); #endif }