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.

 

  1. 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.

 

 

 

For Example:
 

VxFunctionName(argName1, ...);

 

 

  1. Preface published STRUCTURE names with Vs followed by Hungarian style notation. For Example:
     

typedef struct VsStructName { } VsStructName;

 

 

  1. Preface GLOBAL VARIABLE names with Vg followed by Hungarian style notation. For Example:
     

extern VgGlobalName

 

 

  1. Preface MACRO names with Vm followed by Hungarian style notation. For Example:
     

VmMacroName()

 

 

  1. Preface DEFINES, and CONST names with V_ followed by all capital letters. For Example:
     

#define V_ZERO

 

 

  1. 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;

 

Return to VX CAD/CAM Index