Constant declarations for mac OSX

Gareth Baker Gareth_member at
Thu Feb 23 07:51:11 PST 2006

I'm running GDC on mac OSX. The mac tags events with a four character code which
is converted to a 
UInt32 along the lines of:

(s[0] << 24) || (s[1] << 16) || (s[2] << 8) || (s[3])

where s[n] is the ascii charater number.

I need to declare:

const OSType	kEventClassCommand            = FOUR_CHAR_CODE("cmds");

Browsing the documentation seems to indicate I need a template but I can't seem
to work out how. Can 
anybody help?


Gareth Baker
g.j.baker at

More information about the Digitalmars-d-learn mailing list