2014-01-29 21:43:33 +01:00
|
|
|
/*--------------------------------------------------------------------------
|
2015-08-21 16:21:16 +02:00
|
|
|
* LuaSec 0.6a
|
|
|
|
* Copyright (C) 2006-2015 Bruno Silvestre
|
2014-01-29 21:43:33 +01:00
|
|
|
*
|
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
2013-03-30 13:21:40 +01:00
|
|
|
#ifndef LSEC_CONFIG_H
|
|
|
|
#define LSEC_CONFIG_H
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
|
|
|
#define LSEC_API __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define LSEC_API extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (LUA_VERSION_NUM == 501)
|
2015-02-12 19:32:54 +01:00
|
|
|
#define setfuncs(L, R) luaL_register(L, NULL, R)
|
|
|
|
#define lua_rawlen(L, i) lua_objlen(L, i)
|
|
|
|
#define luaL_newlib(L, R) do { lua_newtable(L); luaL_register(L, NULL, R); } while(0)
|
|
|
|
#else
|
|
|
|
#define setfuncs(L, R) luaL_setfuncs(L, R, 0)
|
2013-03-30 13:21:40 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|