Updated the new module changes to use more compile/link-time checking rather than runtime checking.

This commit is contained in:
Alex Szpakowski
2014-07-21 15:12:01 -03:00
parent 014b9a46e5
commit d52bab4221
30 changed files with 59 additions and 87 deletions
-5
View File
@@ -25,11 +25,6 @@ namespace love
namespace thread
{
ThreadModule::ThreadModule()
{
moduleType = M_THREAD;
}
LuaThread *ThreadModule::newThread(const std::string &name, love::Data *data)
{
LuaThread *lt = new LuaThread(name, data);
+1 -1
View File
@@ -42,7 +42,6 @@ class ThreadModule : public love::Module
{
public:
ThreadModule();
virtual ~ThreadModule() {}
virtual LuaThread *newThread(const std::string &name, love::Data *data);
virtual Channel *newChannel();
@@ -50,6 +49,7 @@ public:
// Implements Module.
virtual const char *getName() const;
virtual ModuleType getModuleType() const { return M_THREAD; }
}; // ThreadModule