Skip to content

Commit

Permalink
Make compile-time asserts more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 5, 2017
1 parent 0d249ca commit b6e139f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physfs.h
Expand Up @@ -320,7 +320,7 @@ typedef signed long long PHYSFS_sint64;
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
/* Make sure the types really have the right sizes */
#define PHYSFS_COMPILE_TIME_ASSERT(name, x) \
typedef int PHYSFS_dummy_ ## name[(x) * 2 - 1]
typedef int PHYSFS_compile_time_assert_ ## name[(x) * 2 - 1]

PHYSFS_COMPILE_TIME_ASSERT(uint8, sizeof(PHYSFS_uint8) == 1);
PHYSFS_COMPILE_TIME_ASSERT(sint8, sizeof(PHYSFS_sint8) == 1);
Expand Down

0 comments on commit b6e139f

Please sign in to comment.