Quote:
Originally Posted by mbergmann-sh
HELP appreciated! What's wrong with this declaration:
Code:
static int (*calltrap)(...) = (int (*)(...))0xF0FF60;
vbcc moans it as "error 0 - declaration expected", while SAS/C, StormC v3 eat it as beeing OK.
How do I have to rewrite this statement in order to get vbcc to come clear with it?
Thanks in advance,
Michael
|
GCC gives us a more descriptive error:
Code:
error: ISO C requires a named argument before ‘...’
So for me the following compiles in gcc:
Code:
static int (*calltrap)(int, ...) = (int (*)(int, ...))0xF0FF60;
Sorry I can't test with vbcc, my install is borked at the moment.