mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Make love::Type handle type names
TODO: Fix undefined behaviour in luax_register_type, you can't use a va_list after a reference type --HG-- branch : dynamiccore2
This commit is contained in:
@@ -27,7 +27,7 @@ namespace love
|
||||
namespace video
|
||||
{
|
||||
|
||||
love::Type VideoStream::type(&Stream::type);
|
||||
love::Type VideoStream::type("VideoStream", &Stream::type);
|
||||
|
||||
void VideoStream::setSync(VideoStream::FrameSync *frameSync)
|
||||
{
|
||||
|
||||
@@ -124,7 +124,7 @@ static const luaL_Reg videostream_functions[] =
|
||||
|
||||
int luaopen_videostream(lua_State *L)
|
||||
{
|
||||
return luax_register_type(L, VideoStream::type, "VideoStream", videostream_functions, nullptr);
|
||||
return luax_register_type(L, VideoStream::type, videostream_functions, nullptr);
|
||||
}
|
||||
|
||||
} // video
|
||||
|
||||
Reference in New Issue
Block a user