mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Imported some of the dynamiccore branch from love-experiments:
- Type names for love's Lua objects are specified as an argument to luax_register_type, rather than being statically defined in an array. - luax_register_type takes a variable number of method array arguments, for registering superclass methods without copying them into the subclass' method array. Also removed most of the header declarations for wrapper functions.
This commit is contained in:
@@ -141,7 +141,7 @@ extern "C" int luaopen_love_event(lua_State *L)
|
||||
w.name = "event";
|
||||
w.type = MODULE_ID;
|
||||
w.functions = functions;
|
||||
w.types = 0;
|
||||
w.types = nullptr;
|
||||
|
||||
return luax_register_module(L, w);
|
||||
}
|
||||
|
||||
@@ -30,13 +30,6 @@ namespace love
|
||||
namespace event
|
||||
{
|
||||
|
||||
int w_pump(lua_State *L);
|
||||
int w_poll(lua_State *L);
|
||||
int w_wait(lua_State *L);
|
||||
int w_push(lua_State *L);
|
||||
int w_clear(lua_State *L);
|
||||
int w_quit(lua_State *L);
|
||||
|
||||
extern "C" LOVE_EXPORT int luaopen_love_event(lua_State *L);
|
||||
|
||||
} // event
|
||||
|
||||
Reference in New Issue
Block a user