mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-24 11:41:02 +00:00
29 lines
536 B
Text
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 =
|
|
{
|
|
|
|
|
|
}
|