Last active
December 13, 2015 20:08
-
-
Save Groogy/4967554 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Application::loadModule(const tyr::Module& module) | |
{ | |
myModules.push_back(module); | |
module.initialize(this); | |
} | |
static VALUE load(VALUE self, VALUE name) | |
{ | |
tyr::Module module(RSTRING(name)->ptr); | |
auto application = tyr::toNative<tyr::Application>(self); | |
application->loadModule(module); | |
return Qnil; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment