Build type information on first use (load-time), instead of using a hardcoded list

--HG--
branch : dynamiccore2
This commit is contained in:
Bart van Strien
2016-11-13 16:38:57 +01:00
parent 452a8a877e
commit c761202486
192 changed files with 734 additions and 614 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ public:
Variant(double number);
Variant(const char *string, size_t len);
Variant(void *userdata);
Variant(love::Type udatatype, void *userdata);
Variant(love::Type *udatatype, void *userdata);
Variant(std::vector<std::pair<Variant, Variant>> *table);
Variant(const Variant &v);
Variant(Variant &&v);
@@ -101,7 +101,7 @@ private:
static const int MAX_SMALL_STRING_LENGTH = 15;
Type type;
love::Type udatatype;
love::Type *udatatype;
union Data
{