diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-06-19 18:42:13 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-06-19 18:42:13 +0000 |
commit | 1b6c4e6e4a16ed49570e1787641e5af79dba23f7 (patch) | |
tree | 620245ae2a5ded115b26f79a6f422881a9340365 /plugins/MirLua/Modules/JSON/src/stdafx.h | |
parent | 6593f9613819dbc42ffff76a4d7a6d5156b46eae (diff) |
MirLua: almost work m_json
git-svn-id: http://svn.miranda-ng.org/main/trunk@17013 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/Modules/JSON/src/stdafx.h')
-rw-r--r-- | plugins/MirLua/Modules/JSON/src/stdafx.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins/MirLua/Modules/JSON/src/stdafx.h b/plugins/MirLua/Modules/JSON/src/stdafx.h deleted file mode 100644 index 98bbbbbeeb..0000000000 --- a/plugins/MirLua/Modules/JSON/src/stdafx.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once
-
-#define LUA_LIBRARY_EXPORT(x) EXTERN_C int __declspec(dllexport) luaopen_##x(lua_State* L)
-
-
-#include <Windows.h>
-#include <lua.hpp>
-#include <m_system_cpp.h>
-//#include "..\..\..\src\mlua_metatable.h"
-
-#include <m_core.h>
-#include <m_json.h>
-#include <m_string.h>
-
-struct MT
-{
- JSONNode *node;
- bool bDelete;
-
- MT(JSONNode &refNode, bool bCopy = false) : node(bCopy ? json_copy(&refNode) : &refNode), bDelete(bCopy) {}
- MT(JSONNode *n, bool bD = true) : node(n), bDelete(bD) {}
- ~MT()
- {
- if (bDelete) json_delete(node);
- }
-
- __inline void* operator new(size_t size, lua_State *L)
- {
- return lua_newuserdata(L, size);
- }
-};
-
-extern const luaL_Reg jsonApi[];
-#define MT_JSON "JSON_METATABLE"
\ No newline at end of file |