new macro 'getproto'

This commit is contained in:
Roberto Ierusalimschy
2009-07-15 15:37:19 -03:00
parent 2658c94925
commit bd5fa9cc8f
3 changed files with 8 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lobject.h,v 2.26 2009/06/17 17:48:34 roberto Exp roberto $
** $Id: lobject.h,v 2.27 2009/06/18 16:36:40 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -312,6 +312,7 @@ typedef union Closure {
#define iscfunction(o) (ttype(o) == LUA_TFUNCTION && clvalue(o)->c.isC)
#define isLfunction(o) (ttype(o) == LUA_TFUNCTION && !clvalue(o)->c.isC)
#define getproto(o) (clvalue(o)->l.p)
/*
** Tables