The basic function:
void foo(int bar=99){};
And in the #include
'd routine:
extern void foo(int);foo();
This doesn't compile as it says 1 argument is required for foo()
. If I make it:
extern void foo(int=99);foo();
This also doesn't compile, saying the default value was previously specified. Ideally I'd want one default in the main routine, and a different default in the #include
'd routine - is that possible?
I've also tried:
extern void foo(int bar=99);