mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
f1d5e686ce
* added files for Lua handler and moved Lua test code
19 lines
361 B
C++
19 lines
361 B
C++
#ifndef CLUAHANDLER_H
|
|
#define CLUAHANDLER_H
|
|
#include "global.h"
|
|
#if (LUA_VERSION_NUM < 500)
|
|
# define LUA_OPEN_LIB(L, lib) lib(L)
|
|
#else
|
|
# define LUA_OPEN_LIB(L, lib) \
|
|
lua_pushcfunction((L), lib); \
|
|
lua_pcall((L), 0, 0, 0);
|
|
#endif
|
|
class CLuaHandler
|
|
{
|
|
public:
|
|
CLuaHandler();
|
|
~CLuaHandler();
|
|
|
|
void test();
|
|
};
|
|
#endif //CLUAHANDLER_H
|