mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
ee9bcc98c1
function prefix.
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 =
|
|
{
|
|
|
|
|
|
}
|