dl
compat-5.4.h
浏览该文件的文档.
1#ifndef NOT_KEPLER_PROJECT_COMPAT54_H_
2#define NOT_KEPLER_PROJECT_COMPAT54_H_
3
4#if defined(__cplusplus) && !defined(COMPAT53_LUA_CPP)
5extern "C" {
6#endif
7#include <lua.h>
8#include <lauxlib.h>
9#include <lualib.h>
10#if defined(__cplusplus) && !defined(COMPAT53_LUA_CPP)
11}
12#endif
13
14#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM == 504
15
16#if !defined(LUA_ERRGCMM)
17/* So Lua 5.4 actually removes this, which breaks sol2...
18 man, this API is quite unstable...!
19*/
20# define LUA_ERRGCMM (LUA_ERRERR + 2)
21#endif /* LUA_ERRGCMM define */
22
23#endif // Lua 5.4 only
24
25#endif // NOT_KEPLER_PROJECT_COMPAT54_H_