3131// MSVC_EXPAND works around a Visual C++ problem, expanding __VA_ARGS__ incorrectly:
3232#define MSVC_EXPAND (x ) x
3333
34- // Wrap C++ style macro function for clang-format to follow our code style.
34+ // Wrap C++ style macro function so that clang-format follows our code style.
3535// NOTE: Not relative to MSVC_EXPAND macro's bugfix.
3636#define MACRO_FUNC (x ) x
3737
4646#define UNPARENTHESES_INVOKE (args ) VA_ARGS_EXPAND(args)
4747#define UNPARENTHESES (args ) UNPARENTHESES_INVOKE(VA_ARGS_EXPAND args)
4848
49- // count array type size
49+ // get the number of elements of an array
5050#define COUNT_ARRAYSIZE (type_, array_ ) (sizeof ((type_[])UNPARENTHESES(array_)) / sizeof (type_))
5151
52- // Increment counter for PARAMS macro to use with .
52+ // Increment counter used by the PARAMS macro .
5353#define INC_1 2
5454#define INC_2 3
5555#define INC_3 4
@@ -211,7 +211,7 @@ typedef struct _LOOVPA {
211211
212212#define OOVPA_END }
213213
214- #pragma pack() // require restore pack for AppleClang to build
214+ #pragma pack() // restore packing so that AppleClang can build
215215typedef struct _OOVPARevision {
216216 OOVPA* Oovpa;
217217 unsigned short Version; // : 13; // 2^13 = 8192, enough to store lowest and highest possible Library Version number in
@@ -229,7 +229,7 @@ typedef enum _eDBScanType {
229229// ******************************************************************
230230// * OOVPATable
231231// ******************************************************************
232- #pragma pack() // require restore pack for AppleClang to build
232+ #pragma pack() // restore packing so that AppleClang can build
233233typedef struct _OOVPATable {
234234 const uint16_t xref;
235235 const unsigned scan_type;
@@ -299,13 +299,13 @@ typedef struct _OOVPATable {
299299#define CALL_fas call_fastcall
300300#define CALL (Name ) CALL_##Name
301301
302- // For generate symbol's suffix name, mainly for registers, and extend API usage.
302+ // For generate symbol's suffix name, mainly for registers, and extended API usage.
303303#define PARAM (Param, Name ) Param, Name
304304#define PARAM1 (Param ) Param, " "
305305#define PARAM_TOKEN_unk (Index, Name ) _unk##Index
306306#define PARAM_TOKEN_void (Index, Name ) // No argument, do not append to symbol reference.
307- #define PARAM_TOKEN_stk2 (Index, Name ) // Argument is stored in call stack, do not append to symbol reference.
308- #define PARAM_TOKEN_stk (Index, Name ) // Argument is stored in call stack, do not append to symbol reference.
307+ #define PARAM_TOKEN_stk2 (Index, Name ) // (Custom) argument is stored in call stack with two pushes , do not append to symbol reference.
308+ #define PARAM_TOKEN_stk (Index, Name ) // Argument is stored in call stack with one push , do not append to symbol reference.
309309#define PARAM_TOKEN_eax (Index, Name ) _eax##Index
310310#define PARAM_TOKEN__ax (Index, Name ) _ax##Index
311311#define PARAM_TOKEN__ah (Index, Name ) _ah##Index
0 commit comments