1 2 3 4 5 6 7 8 9 10 11 12
#include "TestMod.hpp" #include <iostream> using namespace std; void Derived::hello( ) { cout << "hello" << endl; } REGISTER_MODULE( "testmod", 0, 0, Base, Derived )