summaryrefslogtreecommitdiffstats
path: root/Tests/UseSWIG/NamespaceCsharp/ns_example.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/UseSWIG/NamespaceCsharp/ns_example.cpp')
-rw-r--r--Tests/UseSWIG/NamespaceCsharp/ns_example.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/UseSWIG/NamespaceCsharp/ns_example.cpp b/Tests/UseSWIG/NamespaceCsharp/ns_example.cpp
new file mode 100644
index 0000000..a03dbad
--- /dev/null
+++ b/Tests/UseSWIG/NamespaceCsharp/ns_example.cpp
@@ -0,0 +1,14 @@
+#include "ns_example.hpp"
+
+namespace ns {
+
+void my_class_in_namespace::add(int value)
+{
+ Sum += value;
+}
+
+int my_class_in_namespace::get_sum() const
+{
+ return Sum;
+}
+}