Created
May 2, 2020 07:27
-
-
Save kateinoigakukun/3e2bf4770d02fba74de421c134211edb to your computer and use it in GitHub Desktop.
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/Sources/CRuntime/include/CRuntime.h b/Sources/CRuntime/include/CRuntime.h | |
index 808d4c0..f4180d9 100644 | |
--- a/Sources/CRuntime/include/CRuntime.h | |
+++ b/Sources/CRuntime/include/CRuntime.h | |
@@ -1,15 +1,16 @@ | |
#ifndef cruntime_h | |
#define cruntime_h | |
+__attribute__((swiftcall)) | |
const void * _Nullable swift_getTypeByMangledNameInContext( | |
const char * _Nullable typeNameStart, | |
int typeNameLength, | |
const void * _Nullable context, | |
const void * _Nullable const * _Nullable genericArgs); | |
const void * _Nullable swift_allocObject( | |
const void * _Nullable type, | |
int requiredSize, | |
int requiredAlignmentMask); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment