Created
May 28, 2015 12:08
-
-
Save genuinelucifer/5974fcb772c820a4692d to your computer and use it in GitHub Desktop.
Trying to pass a CS_API class into a function as CS_OUT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tests/Basic/Basic.h b/tests/Basic/Basic.h | |
index 488dd2c..178c5be 100644 | |
--- a/tests/Basic/Basic.h | |
+++ b/tests/Basic/Basic.h | |
@@ -710,3 +710,16 @@ public: | |
bool operator ==(const DifferentConstOverloads& other); | |
bool operator ==(int number) const; | |
}; | |
+ | |
+#define CS_API | |
+class CS_API ClassPassTry | |
+{ | |
+public: | |
+ int n; | |
+ char c; | |
+}; | |
+ | |
+void funcnewTry(CS_OUT ClassPassTry classTry) | |
+{ | |
+ | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The C# generated code for the function seems completely valid :