FFI: Avoid unused functions if FFI is disabled.

This commit is contained in:
Mike Pall
2011-05-27 02:15:55 +02:00
parent 12dc697eae
commit 638f968978
2 changed files with 4 additions and 0 deletions

View File

@@ -12,7 +12,9 @@
LJ_FUNC void lj_meta_init(lua_State *L);
LJ_FUNC cTValue *lj_meta_cache(GCtab *mt, MMS mm, GCstr *name);
LJ_FUNC cTValue *lj_meta_lookup(lua_State *L, cTValue *o, MMS mm);
#if LJ_HASFFI
LJ_FUNC int lj_meta_tailcall(lua_State *L, cTValue *tv);
#endif
#define lj_meta_fastg(g, mt, mm) \
((mt) == NULL ? NULL : ((mt)->nomm & (1u<<(mm))) ? NULL : \