quakeforge/doc/QCMenuCondingStyle
2002-03-19 16:20:54 +00:00

29 lines
536 B
Text

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 =
{
}