2015-08-21 11:39:34 -07:00
|
|
|
#ifndef COMPAT_H
|
|
|
|
#define COMPAT_H
|
|
|
|
|
|
|
|
#include "lua.h"
|
|
|
|
#include "lauxlib.h"
|
|
|
|
|
|
|
|
#if LUA_VERSION_NUM==501
|
2019-02-23 01:32:25 -08:00
|
|
|
#define luaL_setfuncs socket_setfuncs
|
|
|
|
#define luaL_testudata socket_testudata
|
2015-08-21 11:39:34 -07:00
|
|
|
void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);
|
2018-06-04 19:14:13 -07:00
|
|
|
void *luaL_testudata ( lua_State *L, int arg, const char *tname);
|
2015-08-21 11:39:34 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|