-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWin32LuaShell.h
More file actions
53 lines (41 loc) · 1.43 KB
/
Win32LuaShell.h
File metadata and controls
53 lines (41 loc) · 1.43 KB
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
/**************************************************************************
* Copyright (C), AirM2M Tech. Co., Ltd.
*
* Name: Win32LuaShell.h
* Author: panjun
* Version: V0.1
* Date: 2016/10/19
*
* Description:
*
*
* History:
* panjun 16/10/19 Initially create file.
**************************************************************************/
#ifndef __WIN32_LUA_SHELL__
#define __WIN32_LUA_SHELL__
#include "lua.hpp"
#include "Windows.h"
#include "AMWatchDll.h"
/*-------------------------------------------------------------------------
* Current LuaT library version
-------------------------------------------------------------------------*/
#define LUAT_VERSION "LuaT 2.0-rc1"
#define LUAT_COPYRIGHT "Copyright (C) 2015-2017 AirM2M LuaT"
#define LUA_LOG_HEADER "[LUA] "
#define SIMLA_MAIN_THREAD_STACK_SIZE (64*1024)
#define DAEMON_THREAD_STACK_SIZE (16*1024)
#define LOAD_LUA_TSTACK_SIZE (1024*1024)
#define LUA_SHELL_TSTACK_SIZE (16*1024)
extern ULONG gDaemonThreadId;
extern HANDLE gDaemonThread;
extern ULONG gLoadLuaThreadId;
extern HANDLE gLoadLuaThread;
extern ULONG gLuaShellThreadId;
extern HANDLE gLuaShellThread;
extern int platform_init(void);
extern int platform_uart_init(void);
LUALIB_API int luaopen_LuaShell(lua_State *L);
AMWATCH_DLL_API int LuaMain(void);
AMWATCH_DLL_API int luaopen_AMWatch(lua_State* L);
#endif //__WIN32_LUA_SHELL__