Lua 5.1.4: ltm.h


L0001    /*
L0002    ** $Id: ltm.h,v 2.6.1.1 2007/12/27 13:02:25 roberto Exp $
L0003    ** Tag methods
L0004    ** See Copyright Notice in lua.h
L0005    */
L0006    
L0007    #ifndef ltm_h
L0008    #define ltm_h
L0009    
L0010    
L0011    #include "lobject.h"
L0012    
L0013    
L0014    /*
L0015    * WARNING: if you change the order of this enumeration,
L0016    * grep "ORDER TM"
L0017    */
L0018    typedef enum {
L0019      TM_INDEX,
L0020      TM_NEWINDEX,
L0021      TM_GC,
L0022      TM_MODE,
L0023      TM_EQ,  /* last tag method with `fast' access */
L0024      TM_ADD,
L0025      TM_SUB,
L0026      TM_MUL,
L0027      TM_DIV,
L0028      TM_MOD,
L0029      TM_POW,
L0030      TM_UNM,
L0031      TM_LEN,
L0032      TM_LT,
L0033      TM_LE,
L0034      TM_CONCAT,
L0035      TM_CALL,
L0036      TM_N		/* number of elements in the enum */
L0037    } TMS;
L0038    
L0039    
L0040    
L0041    #define gfasttm(g,et,e) ((et) == NULL ? NULL : \
L0042      ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e]))
L0043    
L0044    #define fasttm(l,et,e)	gfasttm(G(l), et, e)
L0045    
L0046    LUAI_DATA const char *const luaT_typenames[];
L0047    
L0048    
L0049    LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
L0050    LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
L0051                                                           TMS event);
L0052    LUAI_FUNC void luaT_init (lua_State *L);
L0053    
L0054    #endif

Generated by pretty.lua