1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
vcmi/CLuaHandler.h
2008-12-26 01:46:53 +00:00

25 lines
497 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();
static std::vector<std::string> * searchForScripts(std::string fol);
static std::vector<std::string> * functionList(std::string file);
~CLuaHandler();
void test();
};
#endif // __CLUAHANDLER_H__