mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
757556022b
2. added lots of comments to my menu code 3. wrote a string hash api (key -> value assignment list) Hm, nothing else afaik. ;)
26 lines
445 B
Text
26 lines
445 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 =
|
|
{
|
|
|
|
|
|
}
|