mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Updated the new module changes to use more compile/link-time checking rather than runtime checking.
This commit is contained in:
@@ -82,7 +82,6 @@ Message *Message::fromLua(lua_State *L, int n)
|
||||
|
||||
Event::Event()
|
||||
{
|
||||
moduleType = M_EVENT;
|
||||
mutex = thread::newMutex();
|
||||
}
|
||||
|
||||
|
||||
@@ -58,6 +58,9 @@ public:
|
||||
Event();
|
||||
virtual ~Event();
|
||||
|
||||
// Implements Module.
|
||||
virtual ModuleType getModuleType() const { return M_EVENT; }
|
||||
|
||||
void push(Message *msg);
|
||||
bool poll(Message *&msg);
|
||||
virtual void clear();
|
||||
|
||||
Reference in New Issue
Block a user