what is CCMD

I'm assuming this means Console Command but am not quite sure. If that is the case would the binddefaults in the following source be the command you enter in the console. Also would this be considered a function. Thank you in advance.
1
2
3
4
CCMD(binddefaults)
{
	C_BindDefaults ();
}

Also would the following code be considered a function
1
2
3
4
const char *C_GetBinding (int key)
{
	return (unsigned int)key < NUM_KEYS ? Bindings[key].GetChars() : NULL;
}

if not what is it?
Last edited on
CCMD seems to be a macro. To know what it does you need to find its definition. I don't think it could be anything other than a function though. Well, maybe a namespace..

And why would C_GetBinding not be a function? It's a perfectly fine one.
Last edited on
Might be a windows OS API call, they usually look like this
closed account (zb0S216C)
I doubt it's an OS API function. It's common for pre-processor marcos and definitions to be upper-case. On the other hand, it could be a normal function, but since the declaration was omitted, we'll not know for sure.

and yes, it's a function definition. It has all the components of a function.

Wazzak
Last edited on
Topic archived. No new replies allowed.