py/nlrthumb: Add support for iOS where the C func is _nlr_push_tail.

This commit is contained in:
Romain Goyet 2019-03-21 09:33:41 +01:00 committed by Damien George
parent 8977c7eb58
commit dce785cc3d
1 changed files with 4 additions and 0 deletions

View File

@ -72,7 +72,11 @@ __attribute__((naked)) unsigned int nlr_push(nlr_buf_t *nlr) {
".align 2 \n"
"nlr_push_tail_var: .word nlr_push_tail \n"
#else
#if defined(__APPLE__) || defined(__MACH__)
"b _nlr_push_tail \n" // do the rest in C
#else
"b nlr_push_tail \n" // do the rest in C
#endif
#endif
);