diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-07-15 15:37:19 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-07-15 15:37:19 -0300 |
| commit | bd5fa9cc8fdd966edc46c3de2cc420a72240ead3 (patch) | |
| tree | 15f713451602e39e8f01ae4311c6c15b92f2448b /lobject.h | |
| parent | 2658c94925fbc93991e854afc2e7354f225967aa (diff) | |
| download | lua-bd5fa9cc8fdd966edc46c3de2cc420a72240ead3.tar.gz lua-bd5fa9cc8fdd966edc46c3de2cc420a72240ead3.tar.bz2 lua-bd5fa9cc8fdd966edc46c3de2cc420a72240ead3.zip | |
new macro 'getproto'
Diffstat (limited to 'lobject.h')
| -rw-r--r-- | lobject.h | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.h,v 2.26 2009/06/17 17:48:34 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.27 2009/06/18 16:36:40 roberto Exp roberto $ |
| 3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -312,6 +312,7 @@ typedef union Closure { | |||
| 312 | #define iscfunction(o) (ttype(o) == LUA_TFUNCTION && clvalue(o)->c.isC) | 312 | #define iscfunction(o) (ttype(o) == LUA_TFUNCTION && clvalue(o)->c.isC) |
| 313 | #define isLfunction(o) (ttype(o) == LUA_TFUNCTION && !clvalue(o)->c.isC) | 313 | #define isLfunction(o) (ttype(o) == LUA_TFUNCTION && !clvalue(o)->c.isC) |
| 314 | 314 | ||
| 315 | #define getproto(o) (clvalue(o)->l.p) | ||
| 315 | 316 | ||
| 316 | /* | 317 | /* |
| 317 | ** Tables | 318 | ** Tables |
