From 50f811e59056488ebf153b86ea8cba1d339246e4 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Wed, 25 Jan 2023 21:49:35 +0100 Subject: Refactoring regression tests --- src/StormCommon.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/StormCommon.h') 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 -- cgit v1.2.3