Reputation: 145
I'm relatively new to C, and am curious what this syntax means in a function declaration:
int DEFAULT_CC foo(void)
where DEFAULT_CC is probably defined somewhere else as:
#define DEFAULT_CC "something"
(I realized the previous example I had up had to do with something completely irrelevant).
Upvotes: 1
Views: 141
Reputation: 11007
Maybe you're messing up C code with makefile notation, because DEFAULT_CC is the standard makefile variable for setting default C compiler.
Upvotes: 0
Reputation: 284927
More likely calling convention. A calling convention defines exactly how values are passed to and returned from a function. Typical values might be cdecl
or stdcall
. For a comprehensive explanation of x86 conventions, see Wikipedia.
int "cc" foo(void)
wouldn't compile.
Upvotes: 2