31
31
// MSVC_EXPAND works around a Visual C++ problem, expanding __VA_ARGS__ incorrectly:
32
32
#define MSVC_EXPAND (x ) x
33
33
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.
35
35
// NOTE: Not relative to MSVC_EXPAND macro's bugfix.
36
36
#define MACRO_FUNC (x ) x
37
37
46
46
#define UNPARENTHESES_INVOKE (args ) VA_ARGS_EXPAND(args)
47
47
#define UNPARENTHESES (args ) UNPARENTHESES_INVOKE(VA_ARGS_EXPAND args)
48
48
49
- // count array type size
49
+ // get the number of elements of an array
50
50
#define COUNT_ARRAYSIZE (type_, array_ ) (sizeof ((type_[])UNPARENTHESES(array_)) / sizeof (type_))
51
51
52
- // Increment counter for PARAMS macro to use with .
52
+ // Increment counter used by the PARAMS macro .
53
53
#define INC_1 2
54
54
#define INC_2 3
55
55
#define INC_3 4
@@ -211,7 +211,7 @@ typedef struct _LOOVPA {
211
211
212
212
#define OOVPA_END }
213
213
214
- #pragma pack() // require restore pack for AppleClang to build
214
+ #pragma pack() // restore packing so that AppleClang can build
215
215
typedef struct _OOVPARevision {
216
216
OOVPA* Oovpa;
217
217
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 {
229
229
// ******************************************************************
230
230
// * OOVPATable
231
231
// ******************************************************************
232
- #pragma pack() // require restore pack for AppleClang to build
232
+ #pragma pack() // restore packing so that AppleClang can build
233
233
typedef struct _OOVPATable {
234
234
const uint16_t xref;
235
235
const unsigned scan_type;
@@ -299,13 +299,13 @@ typedef struct _OOVPATable {
299
299
#define CALL_fas call_fastcall
300
300
#define CALL (Name ) CALL_##Name
301
301
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.
303
303
#define PARAM (Param, Name ) Param, Name
304
304
#define PARAM1 (Param ) Param, " "
305
305
#define PARAM_TOKEN_unk (Index, Name ) _unk##Index
306
306
#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.
309
309
#define PARAM_TOKEN_eax (Index, Name ) _eax##Index
310
310
#define PARAM_TOKEN__ax (Index, Name ) _ax##Index
311
311
#define PARAM_TOKEN__ah (Index, Name ) _ah##Index
0 commit comments