aboutsummaryrefslogtreecommitdiff
path: root/hex.c
diff options
context:
space:
mode:
Diffstat (limited to 'hex.c')
-rw-r--r--hex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hex.c b/hex.c
index 33aaeb8..0874613 100644
--- a/hex.c
+++ b/hex.c
@@ -71,6 +71,12 @@ enum
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
+
+// This test is too annoying to do in CMake due to CheckTypeSize() being unable
+// to take link_directories(), and the Lua constant is documented.
+#if LUA_MAXINTEGER < INT64_MAX
+#error Lua must have at least 64-bit integers
+#endif
#endif // WITH_LUA
#define APP_TITLE PROGRAM_NAME ///< Left top corner