mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Build type information on first use (load-time), instead of using a hardcoded list
--HG-- branch : dynamiccore2
This commit is contained in:
@@ -30,6 +30,9 @@ namespace love
|
||||
{
|
||||
namespace thread
|
||||
{
|
||||
|
||||
love::Type LuaThread::type(&Threadable::type);
|
||||
|
||||
LuaThread::LuaThread(const std::string &name, love::Data *code)
|
||||
: code(code)
|
||||
, name(name)
|
||||
@@ -105,7 +108,7 @@ void LuaThread::onError()
|
||||
return;
|
||||
|
||||
Proxy p;
|
||||
p.type = THREAD_THREAD_ID;
|
||||
p.type = &LuaThread::type;
|
||||
p.object = this;
|
||||
|
||||
std::vector<Variant> vargs = {
|
||||
|
||||
Reference in New Issue
Block a user