blob: c5d18f1934f2b72ed70e91118c0a487226bcf344 (
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
|
#ifndef __WDS_LUA_C_H_VER__
#define __WDS_LUA_C_H_VER__ 2018040522
#if (defined(_MSC_VER) && (_MSC_VER >= 1020)) || defined(__MCPP)
#pragma once
#endif // Check for "#pragma once" support
#define LNUM_INT64
#define WDS_LUA_NO_LUAC
#ifdef __cplusplus
extern "C"
{
#endif // __cplusplus
# include <lua.h>
# include <lauxlib.h>
# include <lualib.h>
lua_State* luaWDS_open();
#ifdef __cplusplus
};
#endif // __cplusplus
// Modules/Packages headers
#include "modules/winreg.h"
#include "modules/lua-winreg/src/lua_tstring.h"
#include "modules/isadmin.h"
#include "modules/wow64.h"
#include "modules/dbgprint.h"
#include "modules/w32resembed.h"
#ifndef lua_pushtstring_lowercase
// same as in Lua: s = s:lower() ... with s on the stack afterward
# define lua_pushtstring_lowercase(L, s) \
lua_getfield(L, LUA_GLOBALSINDEX, "string"); \
lua_getfield(L, -1, "lower"); \
lua_remove(L, -2); \
lua_pushtstring(L, s); \
lua_call(L, 1, 1)
#endif // lua_pushtstring_lowercase
EXTERN_C void stackDump(lua_State *L, char* description);
#endif // __WDS_LUA_C_H_VER__
|