Created
July 22, 2016 04:24
-
-
Save sanuj/35ea72794ddc09e0d164348995793e8f to your computer and use it in GitHub Desktop.
This file contains 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
// 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