quakeforge/doc/QCMenuCondingStyle

30 lines
536 B
Plaintext
Raw Normal View History

QuakeC Menu Coding Style
~~~~~~~~~~~~~~~~~~~~~~~~
(by elmex <Robin Redeker>)
For QuakeC you should use the normal coding style, which is
describes in the file "CodingStyle" in doc/
But you may use not the same prefixes.
Use these prefixes where it makes sense:
CB_ Menu_Item callback
MENU_ Menu making function
DRAW_ Draw
KEYEV_ Keyevent callback
CB_ME_ Menu_EnterHook callback
CB_ML_ Menu_LeaveHook callback
Comment functions like this:
/*
[PREFIX_]FunctionName
Description
*/
returntype (args)
[PREFIX_]FunctionName =
{
}