mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Add basic lua 5.3 support
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
|
||||
#include "except.h"
|
||||
|
||||
extern void luax_register(lua_State *L, const char *name, const luaL_Reg *l);
|
||||
|
||||
/*=========================================================================*\
|
||||
* Internal function prototypes.
|
||||
\*=========================================================================*/
|
||||
@@ -94,6 +96,6 @@ static int global_protect(lua_State *L) {
|
||||
* Init module
|
||||
\*-------------------------------------------------------------------------*/
|
||||
int except_open(lua_State *L) {
|
||||
luaL_openlib(L, NULL, func, 0);
|
||||
luax_register(L, NULL, func);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user