diff options
Diffstat (limited to 'src/serialization.h')
-rw-r--r-- | src/serialization.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serialization.h b/src/serialization.h index 41a505455..caa1a66da 100644 --- a/src/serialization.h +++ b/src/serialization.h @@ -72,7 +72,9 @@ with this program; if not, write to the Free Software Foundation, Inc., // Lowest supported serialization version #define SER_FMT_VER_LOWEST 0 -#define ser_ver_supported(v) (v >= SER_FMT_VER_LOWEST && v <= SER_FMT_VER_HIGHEST_READ) +inline bool ser_ver_supported(s32 v) { + return v >= SER_FMT_VER_LOWEST && v <= SER_FMT_VER_HIGHEST_READ; +} /* Misc. serialization functions |