mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
863b4e9bbd
added some comments to my menu code.
27 lines
446 B
Text
27 lines
446 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_ Input callback
|
|
MENU_ Menu making function
|
|
DRAW_ Draw
|
|
|
|
|
|
Comment functions like this:
|
|
/*
|
|
[PREFIX_]FunctionName
|
|
|
|
Description
|
|
*/
|
|
returntype (args)
|
|
[PREFIX_]FunctionName =
|
|
{
|
|
|
|
|
|
}
|