mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
Add basic lua 5.3 support
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#include "timeout.h"
|
||||
#include "select.h"
|
||||
|
||||
extern void luax_register(lua_State *L, const char *name, const luaL_Reg *l);
|
||||
|
||||
/*=========================================================================*\
|
||||
* Internal function prototypes.
|
||||
\*=========================================================================*/
|
||||
@@ -39,7 +41,7 @@ static luaL_reg func[] = {
|
||||
* Initializes module
|
||||
\*-------------------------------------------------------------------------*/
|
||||
int select_open(lua_State *L) {
|
||||
luaL_openlib(L, NULL, func, 0);
|
||||
luax_register(L, NULL, func);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user