![]() |
![]() |
#1 |
Posts: n/a
|
VBCC: complain about static int (*calltrap)(...) = (int (*)(...))0xF0FF60;
HELP appreciated! What's wrong with this declaration:
Code:
static int (*calltrap)(...) = (int (*)(...))0xF0FF60; How do I have to rewrite this statement in order to get vbcc to come clear with it? Thanks in advance, Michael |
![]() |
#2 | |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 881
|
Quote:
Code:
error: ISO C requires a named argument before ‘...’ Code:
static int (*calltrap)(int, ...) = (int (*)(int, ...))0xF0FF60; |
|
![]() |
![]() |
#3 | |
Posts: n/a
|
Quote:
![]() |
|
![]() |
#4 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,539
|
A function with just one varargs argument makes not much sense in ANSI/ISO-C. The va_arg() macro requires the name of the last argument before the '...' to work.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Rare] Amiga User Int. adfs found! | RoboCop | AMR contributions | 13 | 27 May 2016 01:08 |
asm game - how implement exit to OS via PORTS int | Asman | Coders. General | 4 | 28 June 2011 11:07 |
ASM: false int vector ($60) | Asman | Coders. General | 2 | 13 September 2010 09:22 |
ASM: VERTB int and 16 colored sprites. | Asman | Coders. Tutorials | 5 | 28 April 2010 14:18 |
INT-2 modification on Cyberstorm boards? | astuermer | support.Hardware | 2 | 06 October 2005 15:23 |
|
|