diff options
Diffstat (limited to 'src/lj_obj.h')
-rw-r--r-- | src/lj_obj.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lj_obj.h b/src/lj_obj.h index 43ed9204..d7e8ec09 100644 --- a/src/lj_obj.h +++ b/src/lj_obj.h | |||
@@ -437,6 +437,12 @@ enum { | |||
437 | #define setvmstate(g, st) ((g)->vmstate = ~LJ_VMST_##st) | 437 | #define setvmstate(g, st) ((g)->vmstate = ~LJ_VMST_##st) |
438 | 438 | ||
439 | /* Metamethods. ORDER MM */ | 439 | /* Metamethods. ORDER MM */ |
440 | #ifdef LJ_HASFFI | ||
441 | #define MMDEF_FFI(_) _(new) | ||
442 | #else | ||
443 | #define MMDEF_FFI(_) | ||
444 | #endif | ||
445 | |||
440 | #ifdef LUAJIT_ENABLE_LUA52COMPAT | 446 | #ifdef LUAJIT_ENABLE_LUA52COMPAT |
441 | #define MMDEF_52(_) _(pairs) _(ipairs) | 447 | #define MMDEF_52(_) _(pairs) _(ipairs) |
442 | #else | 448 | #else |
@@ -450,7 +456,7 @@ enum { | |||
450 | /* The following must be in ORDER ARITH. */ \ | 456 | /* The following must be in ORDER ARITH. */ \ |
451 | _(add) _(sub) _(mul) _(div) _(mod) _(pow) _(unm) \ | 457 | _(add) _(sub) _(mul) _(div) _(mod) _(pow) _(unm) \ |
452 | /* The following are used in the standard libraries. */ \ | 458 | /* The following are used in the standard libraries. */ \ |
453 | _(metatable) _(tostring) MMDEF_52(_) | 459 | _(metatable) _(tostring) MMDEF_FFI(_) MMDEF_52(_) |
454 | 460 | ||
455 | typedef enum { | 461 | typedef enum { |
456 | #define MMENUM(name) MM_##name, | 462 | #define MMENUM(name) MM_##name, |