Index: compiled/InvalidFilter.cpp |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/compiled/InvalidFilter.cpp |
@@ -0,0 +1,18 @@ |
+#include <emscripten.h> |
+ |
+#include "InvalidFilter.h" |
+#include "tools.h" |
+ |
+InvalidFilter::InvalidFilter(const std::u16string& text, const std::u16string& reason) |
+ : Filter(text), reason(reason) |
+{ |
+} |
+ |
+// API |
+extern "C" |
+{ |
+ char16_t* EMSCRIPTEN_KEEPALIVE InvalidFilter_get_reason(InvalidFilter* obj, size_t* resultLen) |
+ { |
+ return stringToBuffer(obj->get_reason(), resultLen); |
+ } |
+} |