diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-02-17 11:31:59 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-02-17 11:31:59 +0000 |
commit | 2c7da3b79ebbd1833d1edfdef52d14c2ef2547eb (patch) | |
tree | 15beb4e894b43b7e0a9d5912e01dbdc0fd663d0e /plugins/MirLua/src/stdafx.h | |
parent | df1277bc854e0db5424623890be9a3d74750a03f (diff) |
MirLua:
- minor MT fixes
- enabled chat module
- project cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16289 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/stdafx.h')
-rw-r--r-- | plugins/MirLua/src/stdafx.h | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/plugins/MirLua/src/stdafx.h b/plugins/MirLua/src/stdafx.h index 43d3a21990..f90db7243b 100644 --- a/plugins/MirLua/src/stdafx.h +++ b/plugins/MirLua/src/stdafx.h @@ -41,20 +41,6 @@ class CMLuaScript;
-struct luaM_const
-{
- char *name;
- intptr_t value;
-};
-
-template<typename T>
-T *mir_memdup(T* ptr, size_t size = sizeof(T), bool bCalloc = false)
-{
- void *newptr = (bCalloc ? mir_calloc : mir_alloc)(size);
- memcpy(newptr, ptr, size);
- return (T*)newptr;
-}
-
#include "mlua.h"
#include "mlua_script.h"
#include "mlua_module_loader.h"
@@ -81,6 +67,9 @@ extern HANDLE g_hScriptsFolder; #define MLUA_CORE "m_core"
LUAMOD_API int (luaopen_m_core)(lua_State *L);
+#define MLUA_CHAT "m_chat"
+LUAMOD_API int (luaopen_m_chat)(lua_State *L);
+
#define MLUA_CLIST "m_clist"
LUAMOD_API int (luaopen_m_clist)(lua_State *L);
@@ -118,16 +107,6 @@ LUAMOD_API int (luaopen_m_variables)(lua_State *L); /* utils */
-__forceinline void luaM_loadConsts(lua_State *L, luaM_const consts[])
-{
- for (size_t i = 0; consts[i].name != NULL; i++)
- {
- lua_pushstring(L, consts[i].name);
- lua_pushnumber(L, consts[i].value);
- lua_settable(L, -3);
- }
-}
-
extern HANDLE hNetlib;
void Log(const char *format, ...);
void Log(const wchar_t *format, ...);
@@ -148,9 +127,6 @@ bool luaM_toboolean(lua_State *L, int idx); WPARAM luaM_towparam(lua_State *L, int idx);
LPARAM luaM_tolparam(lua_State *L, int idx);
-CMLuaScript* GetScriptFromEnviroment(lua_State *L, int n = 1);
-int GetScriptIdFromEnviroment(lua_State *L, int n = 1);
-
void InitIcons();
HICON GetIcon(int iconId);
HANDLE GetIconHandle(int iconId);
|