Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 1.3 KB

README.md

File metadata and controls

22 lines (21 loc) · 1.3 KB

wm_lng_c

C language tools

Type Prefix Example Explanation
Array a aArray Array
Boolean b bBool Boolean, TRUE/FALSE
Constant c cConstant Constant value, understand ‘read-only’
Define d dDefine Simple define, defined value or defined type
Enum e eEnum Enum list element
Function f fFunction Typically a function pointer
Handle h hHandle Handle, identifier, implementation dependent (often a pointer)
Iterator i iIterator Like STL iterator
Macro m mMacro Preprocessor macro, mostly compiler dependent, beware
Number n nNumber Char, long, int, float, double, complex, rational, ...
Object o oObject C++ class, complex structure with embedded functions, ...
Pointer p, pp pPointer Typically a 32 bits address, the double pointer is noted ‘pp’
Reference r rReference Reference (C++), always bound and never NULL, unlike pointer
Struct s sStruct Structure
Template t tTemplate Template (C++ only) but can be emulated using macro
Union u uUnion Union, join two or more values of the same size under a common name
Volatile v vVolatile Volatile data, understand ‘not-cached’, but can also be constant (‘read-only’)