Hi! On Sat, Feb 18, 2012 at 02:48:50AM +0100, Per Olofsson wrote: > This code crashes after string_resources[i].load_func(num, > string_resources[i].ptr) if get_string_resource_ptrs is declared as > __fastcall__, as ptr_tab isn't pushed on the stack. Greg is right. You need to change the declaration of the pointer: void (__fastcall__ *load_func)(uint8_t, char **); The compiler should complain about the incompatible function pointers but doesn't. I will check that. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sat Feb 18 15:21:02 2012
This archive was generated by hypermail 2.1.8 : 2012-02-18 15:21:05 CET