This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 37ec97e
committed
[[ Bug 20411 ]] Correct call to objc_msgSend
Whilst 'objc_msgSend' and friends are declared as variadic, they
aren't actually variadic functions.
The objc_msgSend functions forward the call to the appropriate
message, meaning that they must be called with the prototype of the
message and not variadically.
This difference was not seen on x86 processors where the difference
between variadic and non-variadic functions is much less; on ARM
however there is a significant difference, resulting in the obj-c
FFI not working in many cases on iOS devices.1 parent b8ee853 commit 37ec97e
File tree
3 files changed
+9
-5
lines changed- docs/notes
- libscript/src
3 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| |||
310 | 312 | | |
311 | 313 | | |
312 | 314 | | |
| 315 | + | |
| 316 | + | |
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
316 | 320 | | |
317 | 321 | | |
318 | | - | |
| 322 | + | |
319 | 323 | | |
320 | 324 | | |
321 | 325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | | - | |
| 1150 | + | |
1151 | 1151 | | |
1152 | | - | |
1153 | 1152 | | |
1154 | 1153 | | |
1155 | 1154 | | |
| |||
0 commit comments