aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-05 15:54:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-05 15:54:31 -0300
commit237969724f54eeefee057ae382237c8db54af44e (patch)
treefc4abd54f7cac0749023f1c021e7d86e3ee4f273 /lgc.c
parentf438d00ef31e3aea54023602f529b68834ffb80a (diff)
downloadlua-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index b08657bd..f1d00e09 100644
--- a/lgc.c
+++ b/lgc.c
@@ -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
51static void reallymarkobject (GCState *st, TObject *o); 52static void reallymarkobject (GCState *st, TObject *o);
52 53