We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a260e0f commit bc1bd3bCopy full SHA for bc1bd3b
Documentation/Porting.md
@@ -141,7 +141,13 @@ to load that information:
141
+ Handle handle = Get1NamedResource('swft', "\p__swift5_types");
142
+ if (handle && *handle) {
143
+ size_t size = GetHandleSize(handle);
144
-+ body(*handle, size);
++ auto imageAddress = reinterpret_cast<const void *>(static_cast<uintptr_t>(refNum));
145
++ SWTSectionBounds sb = { imageAddress, *handle, GetHandleSize(handle) };
146
++ bool stop = false;
147
++ body(sb, &stop);
148
++ if (stop) {
149
++ break;
150
++ }
151
+ }
152
+ } while (noErr == GetNextResourceFile(refNum, &refNum));
153
+ UseResFile(oldRefNum);
0 commit comments