diff options
author | Ladislav Zezula <ladislav.zezula@avast.com> | 2023-01-25 21:49:35 +0100 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avast.com> | 2023-01-25 21:49:35 +0100 |
commit | 50f811e59056488ebf153b86ea8cba1d339246e4 (patch) | |
tree | 814a96fad4402c93530b1bcad66e1b1af839d60e /src | |
parent | 67d66b45100c0f193b6211f9474f5ad6469b1a94 (diff) |
Refactoring regression tests
Diffstat (limited to 'src')
-rw-r--r-- | src/StormCommon.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/StormCommon.h b/src/StormCommon.h index 48fd86f..39f7524 100644 --- a/src/StormCommon.h +++ b/src/StormCommon.h @@ -73,6 +73,11 @@ // Macro for building 64-bit file offset from two 32-bit
#define MAKE_OFFSET64(hi, lo) (((ULONGLONG)hi << 32) | (ULONGLONG)lo)
+// Macro for checking a valid, non-empty ASCIIZ string
+#ifndef IS_VALID_STRING
+#define IS_VALID_STRING(str) (str && str[0])
+#endif
+
//-----------------------------------------------------------------------------
// MTYPE definition - specifies what kind of MPQ is the map type
|