Naming Conventions
Most VX functions and structures adhere to the rules listed below. These may be useful to help you avoid naming collisions and to more quickly read through the example's provided.
Preface all published FUNCTIONS with Vx and use Hungarian style notation. Function arguments should use a modified Hungarian style, where the first character is in lower case.
File names should be less than or equal to 15 char
Function names should be less than or equal to 30 char
For Example:
|
VxFunctionName(argName1, ...); |
Preface published STRUCTURE names
with Vs followed by Hungarian style notation. For Example:
|
typedef struct VsStructName { } VsStructName; |
Preface GLOBAL VARIABLE names
with Vg followed by Hungarian style notation. For Example:
|
extern VgGlobalName |
Preface MACRO names with Vm
followed by Hungarian style notation. For Example:
|
VmMacroName() |
Preface DEFINES, and CONST names
with V_ followed by all capital letters. For Example:
|
#define V_ZERO |
Preface ENUM names with Ve followed by Hungarian style notation, and the elements of an enum with V_ followed by all capital letters. For Example:
|
enum { V_ELEMENT1, ... } VeEnumName; |