Skip to content

Instantly share code, notes, and snippets.

@Groogy
Last active December 13, 2015 20:08
Show Gist options
  • Save Groogy/4967554 to your computer and use it in GitHub Desktop.
Save Groogy/4967554 to your computer and use it in GitHub Desktop.
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