diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-05 15:54:31 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-05 15:54:31 -0300 |
| commit | 237969724f54eeefee057ae382237c8db54af44e (patch) | |
| tree | fc4abd54f7cac0749023f1c021e7d86e3ee4f273 /lgc.c | |
| parent | f438d00ef31e3aea54023602f529b68834ffb80a (diff) | |
| download | lua-237969724f54eeefee057ae382237c8db54af44e.tar.gz lua-237969724f54eeefee057ae382237c8db54af44e.tar.bz2 lua-237969724f54eeefee057ae382237c8db54af44e.zip | |
support for `light' userdata + simpler support for `boxed' udata
Diffstat (limited to 'lgc.c')
| -rw-r--r-- | lgc.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lgc.c,v 1.132 2002/03/20 18:54:29 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.133 2002/03/26 18:55:50 roberto Exp roberto $ |
| 3 | ** Garbage Collector | 3 | ** Garbage Collector |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -46,7 +46,8 @@ typedef struct GCState { | |||
| 46 | 46 | ||
| 47 | 47 | ||
| 48 | #define ismarkable(o) (!((1 << ttype(o)) & \ | 48 | #define ismarkable(o) (!((1 << ttype(o)) & \ |
| 49 | ((1 << LUA_TNIL) | (1 << LUA_TNUMBER) | (1 << LUA_TBOOLEAN)))) | 49 | ((1 << LUA_TNIL) | (1 << LUA_TNUMBER) | \ |
| 50 | (1 << LUA_TBOOLEAN) | (1 << LUA_TUDATAVAL)))) | ||
| 50 | 51 | ||
| 51 | static void reallymarkobject (GCState *st, TObject *o); | 52 | static void reallymarkobject (GCState *st, TObject *o); |
| 52 | 53 | ||
