"And" <49341109@ntnu.edu.tw> wrote:
> should macro name start with uppercase?
Yes, I think so, to avoid collisions with the SDL
For macro's inside an include file I tend to prepend the name with a few
'meaningfull' capitals.
Macro's inside a Singly Linked List include look like
SLLInit()
SLLPush()
SLLAdd()
SLLPop()
SLLPeek()
....
For macro's and variables that are private to an include file I tend to prepend
them with an underscore.
ingo
Post a reply to this message
|