From d290e446d4ddde8dd789bdaa2bff64b453a61af2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 Sep 2017 12:55:10 +0300 Subject: compilation fix --- plugins/MirLua/src/mlua_metatable.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/src') diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h index ddd67090d0..20b64446cf 100644 --- a/plugins/MirLua/src/mlua_metatable.h +++ b/plugins/MirLua/src/mlua_metatable.h @@ -29,7 +29,12 @@ struct MTField class CMTField { + ptrA pszName; + public: + const char* GetName() const { return pszName; } + void SetName(const char *szName) { pszName = mir_strdup(szName); } + virtual MTField GetValue(void *obj) = 0; virtual ~CMTField(){}; }; @@ -40,6 +45,7 @@ class CMTFieldOffset : public CMTField int lua_type; ptrdiff_t offset; size_t size; + public: CMTFieldOffset(ptrdiff_t off, size_t s, int type) : offset(off), lua_type(type), size(s) {} virtual MTField GetValue(void *obj) @@ -58,7 +64,7 @@ public: CMTFieldFunction(lua_CFunction f) : func(f) {} - virtual MTField GetValue(void *obj) + virtual MTField GetValue(void*) { MTField tmp = { LUA_TFUNCTION }; tmp.val.function = func; @@ -90,7 +96,7 @@ private: lua_State *L; static const char *name; - static std::map fields; + static OBJLIST arFields; static T* Init(lua_State *L) { -- cgit v1.2.3