blob: 434dcb8e50ca5df6753b80323f87e08888cef1d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
#pragma once
#include <windows.h>
#include <time.h>
#include <wchar.h>
#include <map>
#include <newpluginapi.h>
#include <m_core.h>
#include <m_utils.h>
#include <m_langpack.h>
#include <m_database.h>
#include <m_options.h>
#include <m_netlib.h>
#include <m_genmenu.h>
#include <m_http.h>
#include <m_clist.h>
#include <m_hotkeys.h>
#include <m_icolib.h>
#include <m_skin.h>
#include <m_message.h>
#include <m_chat.h>
#include <m_protocols.h>
#include <m_contacts.h>
#include <m_folders.h>
#include <m_popup.h>
#include <m_toptoolbar.h>
#include <m_json.h>
#include <m_gui.h>
#include <m_lua.h>
#include <mirlua.h>
#include "version.h"
#include "resource.h"
class CMLuaScript;
#include "lua.h"
#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 "options.h"
#include "metatable.h"
#define MODULENAME "MirLua"
extern int g_hMLuaLangpack;
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"
extern HNETLIBUSER g_hNetlib;
void LoadNetlib();
void UnloadNetlib();
void LoadIcons();
HICON GetIcon(int iconId);
HANDLE GetIconHandle(int iconId);
int OnOptionsInit(WPARAM wParam, LPARAM);
/* 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);
|