diff options
Diffstat (limited to 'sci_gateway/cpp/libtest_toolbox.cpp')
-rw-r--r-- | sci_gateway/cpp/libtest_toolbox.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sci_gateway/cpp/libtest_toolbox.cpp b/sci_gateway/cpp/libtest_toolbox.cpp new file mode 100644 index 0000000..a2cd82a --- /dev/null +++ b/sci_gateway/cpp/libtest_toolbox.cpp @@ -0,0 +1,16 @@ +#include <wchar.h> +#include "libtest_toolbox.hxx" +extern "C" +{ +#include "libtest_toolbox.h" +#include "addfunction.h" +} + +#define MODULE_NAME L"libtest_toolbox" + +int libtest_toolbox(wchar_t* _pwstFuncName) +{ + if(wcscmp(_pwstFuncName, L"multiply") == 0){ addCFunction(L"multiply", &sci_multiply, MODULE_NAME); } + + return 1; +} |