From eeaa8f7b32e25e9d35970a309dc3d90c3deb56ed Mon Sep 17 00:00:00 2001 From: theraven Date: Mon, 10 Oct 2011 11:25:22 +0000 Subject: [PATCH] Add a warning when compiling on a platform where imp_implementationWithBlock() won't work. --- block_trampolines.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block_trampolines.S b/block_trampolines.S index fe65402..e9d5ea9 100644 --- a/block_trampolines.S +++ b/block_trampolines.S @@ -46,12 +46,13 @@ __objc_block_trampoline_sret: next_line2: pop %eax # Load the old instruction pointer mov 8(%esp), %ebx # Load the self parameter - mov %ebx, 12(%esp) # Store self as the second argument + mov %ebx, 12(%esp) # Store self as the second argument mov -9(%eax), %ebx # Load the block pointer to %ebx mov %ebx, 8(%esp) # Store the block pointer in the first argument jmp *-13(%eax) # Call the block function __objc_block_trampoline_end_sret: #else +#warning imp_implementationWithBlock() not implemented for your architecture __objc_block_trampoline: __objc_block_trampoline_end: __objc_block_trampoline_sret: