From 5484921597b3748b00495d8bc0b47957343e3c2b Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Fri, 25 Apr 2014 17:44:46 +0200 Subject: [PATCH] Make the stored data and type of Variant public, to allow for non-lua unpacking. NOTE: Not that useful in the love source, but might be nice if libraries try to interface with it. --- src/common/Variant.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/Variant.h b/src/common/Variant.h index 4592a2fa9..dd8b68fac 100644 --- a/src/common/Variant.h +++ b/src/common/Variant.h @@ -48,7 +48,6 @@ public: static Variant *fromLua(lua_State *L, int n, bool allowTables = true); void toLua(lua_State *L); -private: enum Type { UNKNOWN = 0, @@ -74,6 +73,8 @@ private: void *userdata; std::vector > *table; } data; + +private: love::Type udatatype; bits flags;