diff options
Diffstat (limited to 'tests/modules/test4.cpp')
-rwxr-xr-x | tests/modules/test4.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/modules/test4.cpp b/tests/modules/test4.cpp index 8e1bfbe..4e71295 100755 --- a/tests/modules/test4.cpp +++ b/tests/modules/test4.cpp @@ -1,6 +1,7 @@ #include "ModuleLoader.hpp" #include "Base.hpp" #include "Common.hpp" +#include "UserData.hpp" #include <vector> #include <string> @@ -20,7 +21,10 @@ int main( void ) #else modules.push_back( ".\\testmod4\\mod_test4.dll" ); #endif - ModuleLoader<Base> loader( modules ); + UserData user_data; + user_data.version = 47; + user_data.text.assign( "hello there" ); + ModuleLoader<Base> loader( modules, (void *)&user_data ); Base *obj = loader.create( "testmod4" ); c.print( "hello from main" ); |