aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-24 10:08:45 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-24 10:08:45 -0300
commite34f282365d72ddbd2000f789cd804dbbd433773 (patch)
tree9071862c6c42fb2020830da5876f112f4f8f6931 /lobject.h
parent3941af53adee868e2cccfb9b85783aba9ac311c1 (diff)
downloadlua-e34f282365d72ddbd2000f789cd804dbbd433773.tar.gz
lua-e34f282365d72ddbd2000f789cd804dbbd433773.tar.bz2
lua-e34f282365d72ddbd2000f789cd804dbbd433773.zip
`luaV_gettable' returns element position
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index 75610c99..62357a9a 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.135 2002/06/13 13:39:55 roberto Exp roberto $ 2** $Id: lobject.h,v 1.136 2002/06/20 20:41:46 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*/
@@ -74,7 +74,7 @@ typedef struct lua_TObject {
74#define setnilvalue(obj) ((obj)->tt=LUA_TNIL) 74#define setnilvalue(obj) ((obj)->tt=LUA_TNIL)
75 75
76#define setobj(obj1,obj2) \ 76#define setobj(obj1,obj2) \
77 { TObject *o1=(obj1); const TObject *o2=(obj2); \ 77 { const TObject *o2=(obj2); TObject *o1=(obj1); \
78 o1->tt=o2->tt; o1->value = o2->value; } 78 o1->tt=o2->tt; o1->value = o2->value; }
79 79
80#define setttype(obj, tt) (ttype(obj) = (tt)) 80#define setttype(obj, tt) (ttype(obj) = (tt))