Skip to content
Snippets Groups Projects
Select Git revision
  • showinput
  • fading-callback-thread-fix
  • next default protected
  • removetwohundredandsixty
  • bosszero
  • weaponshadow
  • cleanupmusic
  • udmf-texture-scaling
  • levelstruct
  • polybsp
  • tc
  • udmf-nophysicsequation
  • udmf-absolutez
  • bbox
  • plinedefexectutefix
  • increasemaxunlockables
  • master
  • 2211-rc1
  • font_drawer
  • 2211-pre2
  • SRB2_release_2.2.11
  • SRB2_release_2.2.10
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
  • SRB2_release_2.1.19
  • SRB2_release_2.1.18
40 results

ltm.h

Blame
  • Forked from STJr / SRB2
    13985 commits behind, 2 commits ahead of the upstream repository.
    Alam Ed Arias's avatar
    Alam Ed Arias authored and Alam Arias committed
    b93cb1b6
    History
    ltm.h 1.01 KiB
    /*
    ** $Id: ltm.h,v 2.6.1.1 2007/12/27 13:02:25 roberto Exp $
    ** Tag methods
    ** See Copyright Notice in lua.h
    */
    
    #ifndef ltm_h
    #define ltm_h
    
    
    #include "lobject.h"
    
    
    /*
    * WARNING: if you change the order of this enumeration,
    * grep "ORDER TM"
    */
    typedef enum {
      TM_INDEX,
      TM_NEWINDEX,
      TM_USEDINDEX,
      TM_GC,
      TM_MODE,
      TM_EQ,  /* last tag method with `fast' access */
      TM_ADD,
      TM_SUB,
      TM_MUL,
      TM_DIV,
      TM_MOD,
      TM_POW,
      TM_UNM,
      TM_LEN,
      TM_LT,
      TM_LE,
      TM_CONCAT,
      TM_CALL,
      TM_STRHOOK,
      TM_AND,
      TM_OR,
      TM_XOR,
      TM_SHL,
      TM_SHR,
      TM_NOT,
      TM_N		/* number of elements in the enum */
    } TMS;
    
    
    
    #define gfasttm(g,et,e) ((et) == NULL ? NULL : \
      ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e]))
    
    #define fasttm(l,et,e)	gfasttm(G(l), et, e)
    
    LUAI_DATA const char *const luaT_typenames[];
    
    
    LUAI_FUNC TValue *luaT_gettm (Table *events, TMS event, TString *ename);
    LUAI_FUNC TValue *luaT_gettmbyobj (lua_State *L, TValue *o, TMS event);
    LUAI_FUNC void luaT_init (lua_State *L);
    
    #endif