diff options
Diffstat (limited to 'src/lj_ccall.h')
-rw-r--r-- | src/lj_ccall.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lj_ccall.h b/src/lj_ccall.h index 14f61924..0641625f 100644 --- a/src/lj_ccall.h +++ b/src/lj_ccall.h | |||
@@ -81,7 +81,7 @@ typedef double FPRArg; | |||
81 | typedef intptr_t GPRArg; | 81 | typedef intptr_t GPRArg; |
82 | 82 | ||
83 | #else | 83 | #else |
84 | #error "missing calling convention definitions for this architecture" | 84 | #error "Missing calling convention definitions for this architecture" |
85 | #endif | 85 | #endif |
86 | 86 | ||
87 | #ifndef CCALL_SPS_EXTRA | 87 | #ifndef CCALL_SPS_EXTRA |
@@ -99,6 +99,10 @@ typedef intptr_t GPRArg; | |||
99 | #define CCALL_NUM_FPR \ | 99 | #define CCALL_NUM_FPR \ |
100 | (CCALL_NARG_FPR > CCALL_NRET_FPR ? CCALL_NARG_FPR : CCALL_NRET_FPR) | 100 | (CCALL_NARG_FPR > CCALL_NRET_FPR ? CCALL_NARG_FPR : CCALL_NRET_FPR) |
101 | 101 | ||
102 | /* Check against constants in lj_ctype.h. */ | ||
103 | LJ_STATIC_ASSERT(CCALL_NUM_GPR <= CCALL_MAX_GPR); | ||
104 | LJ_STATIC_ASSERT(CCALL_NUM_FPR <= CCALL_MAX_FPR); | ||
105 | |||
102 | #define CCALL_MAXSTACK 32 | 106 | #define CCALL_MAXSTACK 32 |
103 | 107 | ||
104 | /* -- C call state -------------------------------------------------------- */ | 108 | /* -- C call state -------------------------------------------------------- */ |