Skip to content

Instantly share code, notes, and snippets.

@kateinoigakukun
Created May 2, 2020 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kateinoigakukun/3e2bf4770d02fba74de421c134211edb to your computer and use it in GitHub Desktop.
Save kateinoigakukun/3e2bf4770d02fba74de421c134211edb to your computer and use it in GitHub Desktop.
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