#pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "version.h" #include "resource.h" class CMLuaScript; #include "plugin.h" #include "modules.h" #include "environment.h" #include "script.h" #include "function_loader.h" #include "module_loader.h" #include "script_loader.h" #include "variables_loader.h" #include "options.h" #include "metatable.h" #define MODULENAME "MirLua" extern PLUGININFOEX g_pluginInfoEx; extern HANDLE g_hCLibsFolder; extern HANDLE g_hScriptsFolder; #ifdef _UNICODE #define MIRLUA_PATHT MIRANDA_PATHW L"\\Scripts" #else #define MIRLUA_PATHT MIRANDA_PATH "\\Scripts" #endif #define LUACLIBSCRIPTEXT L"dll" #define LUATEXTSCRIPTEXT L"lua" #define LUAPRECSCRIPTEXT L"luac" void LoadIcons(); /* utils */ void Log(const char *format, ...); void Log(const wchar_t *format, ...); void ShowNotification(const char *caption, const char *message, int flags = 0, MCONTACT hContact = NULL); void ObsoleteMethod(lua_State *L, const char *message); void ReportError(lua_State *L); int luaM_atpanic(lua_State *L); int luaM_pcall(lua_State *L, int n = 0, int r = 0); int luaM_getenv(lua_State *L); bool luaM_toboolean(lua_State *L, int idx); bool luaM_isarray(lua_State *L, int idx);