From 39e461bb614d75a6f23511a016afaeb3aba35f1a Mon Sep 17 00:00:00 2001 From: aunsane Date: Tue, 10 Oct 2017 21:55:12 +0300 Subject: MirLua: - m_json moved into base plugin - added m_http module -version bump --- plugins/MirLua/Modules/m_json/src/stdafx.h | 35 ------------------------------ 1 file changed, 35 deletions(-) delete mode 100644 plugins/MirLua/Modules/m_json/src/stdafx.h (limited to 'plugins/MirLua/Modules/m_json/src/stdafx.h') diff --git a/plugins/MirLua/Modules/m_json/src/stdafx.h b/plugins/MirLua/Modules/m_json/src/stdafx.h deleted file mode 100644 index dcbdfbd56d..0000000000 --- a/plugins/MirLua/Modules/m_json/src/stdafx.h +++ /dev/null @@ -1,35 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include - -struct JSON -{ - JSONNode *node; - bool bDelete; - - JSON(JSONNode &refNode, bool bCopy = false) - : node(bCopy ? json_copy(&refNode) : &refNode), bDelete(bCopy) { } - JSON(JSONNode *n, bool bD = true) - : node(n), bDelete(bD) { } - ~JSON() - { - if (bDelete) - json_delete(node); - } - - __inline void* operator new(size_t size, lua_State *L) - { - return lua_newuserdata(L, size); - } -}; - -void lua2json(lua_State *L, JSONNode &node); - -extern const luaL_Reg jsonApi[]; - -#define MT_JSON "JSON" \ No newline at end of file -- cgit v1.2.3