Re: [cc65] function pointer to __fastcall__ function

From: Per Olofsson <magervalp1gmail.com>
Date: 2012-02-18 15:25:22
On Sat, Feb 18, 2012 at 3:20 PM, Ullrich von Bassewitz <uz@musoftware.de> wrote:
>
> 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:

Works like a charm, thanks!
----------------------------------------------------------------------
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:25:30 2012

This archive was generated by hypermail 2.1.8 : 2012-02-18 15:25:33 CET