diff options
author | Mike Pall <mike> | 2011-10-24 16:35:17 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-10-24 16:35:17 +0200 |
commit | fa9ade356b0543f11295023de3b4441a1e7d39a3 (patch) | |
tree | 4ed3765c8c3046672b1eafd17f303ee6e40988fb /src/lj_arch.h | |
parent | 96d8611d1b3c038d565016c0383e2cb7a8064449 (diff) | |
download | luajit2-fa9ade356b0543f11295023de3b4441a1e7d39a3.tar.gz |
Allow selection of single-number vs. dual-number mode in Makefile.
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r-- | src/lj_arch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h index 80ab051e..f6448848 100644 --- a/src/lj_arch.h +++ b/src/lj_arch.h @@ -235,6 +235,10 @@ #endif /* Enable or disable the dual-number mode for the VM. */ +#if (LJ_ARCH_NUMMODE == LJ_NUMMODE_SINGLE && LUAJIT_NUMMODE == 2) || \ + (LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL && LUAJIT_NUMMODE == 1) +#error "No support for this number mode on this architecture" +#endif #if LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL || \ (LJ_ARCH_NUMMODE == LJ_NUMMODE_DUAL_SINGLE && LUAJIT_NUMMODE != 1) || \ (LJ_ARCH_NUMMODE == LJ_NUMMODE_SINGLE_DUAL && LUAJIT_NUMMODE == 2) |