public static void Push(IntPtr L, System.Enum e) { if (e == null) { LuaDLL.lua_pushnil(L); } else { object obj = null; int enumMetatable = LuaStatic.GetEnumObject(L, e, out obj); PushUserData(L, obj, enumMetatable); } }
public static void Push(IntPtr L, Enum e) { if (e == null) { LuaDLL.lua_pushnil(L); } else { object o = null; int enumObject = LuaStatic.GetEnumObject(L, e, out o); ToLua.PushUserData(L, o, enumObject); } }