Re: [cc65] array of pointers to functions question

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-05-15 10:40:55
On Sat, May 15, 2010 at 03:26:34AM -0400, Chiron Bramberger wrote:
>  and this doesn't:
>  -----
>  void (*vibrato_change)();
>  void (*lfo_change)();
>  vibrato_change = vib_chg;
>  lfo_change = lfo_chg ;
>  void (*command[])() = {vib_chg,lfo_chg };
>  //Error: Expression expected

You cannot mix code and variable declarations. Variable declaration have to go
on top.

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 May 15 10:41:04 2010

This archive was generated by hypermail 2.1.8 : 2010-05-15 10:41:06 CEST