diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_jit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h index a9c602f0..fa754b64 100644 --- a/src/lj_jit.h +++ b/src/lj_jit.h | |||
@@ -510,6 +510,12 @@ LJ_ALIGN(16) /* For DISPATCH-relative addresses in assembler part. */ | |||
510 | #endif | 510 | #endif |
511 | jit_State; | 511 | jit_State; |
512 | 512 | ||
513 | #ifdef LUA_USE_ASSERT | ||
514 | #define lj_assertJ(c, ...) lj_assertG_(J2G(J), (c), __VA_ARGS__) | ||
515 | #else | ||
516 | #define lj_assertJ(c, ...) ((void)J) | ||
517 | #endif | ||
518 | |||
513 | /* Trivial PRNG e.g. used for penalty randomization. */ | 519 | /* Trivial PRNG e.g. used for penalty randomization. */ |
514 | static LJ_AINLINE uint32_t LJ_PRNG_BITS(jit_State *J, int bits) | 520 | static LJ_AINLINE uint32_t LJ_PRNG_BITS(jit_State *J, int bits) |
515 | { | 521 | { |