Skip to content

Instantly share code, notes, and snippets.

@sanuj
Created July 22, 2016 04:24
Show Gist options
  • Save sanuj/35ea72794ddc09e0d164348995793e8f to your computer and use it in GitHub Desktop.
Save sanuj/35ea72794ddc09e0d164348995793e8f to your computer and use it in GitHub Desktop.
// loadLibrary has SG_INFO("Loaded.\n");
int main()
{
init_shogun_with_defaults();
SGIO *io = get_global_io();
io->set_target_to_stdout();
auto library = shogun::loadLibrary("/home/sanuj/Projects/shogun/buildcpp/tests/unit/libplugin.so");
auto manifest = library.manifest();
auto metaclass = manifest.classByName<MockBaseClass>("m_class");
auto clazz = manifest.classByName<CSGObject>("mock_class_wo_manifest");
auto object = clazz.instance();
exit_shogun();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment