aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lobject.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index bb0339cc..1867ee99 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.150 2002/10/25 20:05:28 roberto Exp roberto $ 2** $Id: lobject.h,v 1.151 2002/11/04 12:31:44 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*/
@@ -132,6 +132,7 @@ typedef struct lua_TObject {
132#define setnilvalue(obj) ((obj)->tt=LUA_TNIL) 132#define setnilvalue(obj) ((obj)->tt=LUA_TNIL)
133 133
134 134
135
135/* 136/*
136** for internal debug only 137** for internal debug only
137*/ 138*/
@@ -144,6 +145,22 @@ typedef struct lua_TObject {
144 checkconsistency(o2); \ 145 checkconsistency(o2); \
145 o1->tt=o2->tt; o1->value = o2->value; } 146 o1->tt=o2->tt; o1->value = o2->value; }
146 147
148
149/*
150** different types of sets, according to destination
151*/
152
153/* from stack to (same) stack */
154#define setobjs2s setobj
155/* to stack (not from same stack) */
156#define setobj2s setobj
157/* from table to same table */
158#define setobjt2t setobj
159/* to table */
160#define setobj2t setobj
161/* string to stack */
162#define setsvalue2s setsvalue
163
147#define setttype(obj, tt) (ttype(obj) = (tt)) 164#define setttype(obj, tt) (ttype(obj) = (tt))
148 165
149 166