summaryrefslogtreecommitdiff
path: root/sci_gateway/cpp/libscilab_octave.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sci_gateway/cpp/libscilab_octave.cpp')
-rw-r--r--sci_gateway/cpp/libscilab_octave.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/sci_gateway/cpp/libscilab_octave.cpp b/sci_gateway/cpp/libscilab_octave.cpp
new file mode 100644
index 0000000..7cd692a
--- /dev/null
+++ b/sci_gateway/cpp/libscilab_octave.cpp
@@ -0,0 +1,16 @@
+#include <wchar.h>
+#include "libscilab_octave.hxx"
+extern "C"
+{
+#include "libscilab_octave.h"
+#include "addfunction.h"
+}
+
+#define MODULE_NAME L"libscilab_octave"
+
+int libscilab_octave(wchar_t* _pwstFuncName)
+{
+ if(wcscmp(_pwstFuncName, L"octave_fun") == 0){ addCFunction(L"octave_fun", &sci_octave_fun, MODULE_NAME); }
+
+ return 1;
+}