aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-06-13 11:19:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-06-13 11:19:00 -0300
commit0d1685d751878f52e8e44664aed1e1d5b256b782 (patch)
treee84d766e3a7cd408b04752a0fe4c5ec7fde6268f
parentbf2b342ac1f080d06977bdf84475dc663c9a2644 (diff)
downloadlua-0d1685d751878f52e8e44664aed1e1d5b256b782.tar.gz
lua-0d1685d751878f52e8e44664aed1e1d5b256b782.tar.bz2
lua-0d1685d751878f52e8e44664aed1e1d5b256b782.zip
bug: last tag is not the number of tags...
-rw-r--r--lobject.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lobject.h b/lobject.h
index aa368724..acd89860 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.15 2005/06/06 13:30:25 roberto Exp roberto $ 2** $Id: lobject.h,v 2.16 2005/06/13 14:15:54 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*/
@@ -17,15 +17,17 @@
17 17
18 18
19/* tags for values visible from Lua */ 19/* tags for values visible from Lua */
20#define NUM_TAGS LUA_TTHREAD 20#define LAST_TAG LUA_TTHREAD
21
22#define NUM_TAGS (LAST_TAG+1)
21 23
22 24
23/* 25/*
24** Extra tags for non-values 26** Extra tags for non-values
25*/ 27*/
26#define LUA_TPROTO (NUM_TAGS+1) 28#define LUA_TPROTO (LAST_TAG+1)
27#define LUA_TUPVAL (NUM_TAGS+2) 29#define LUA_TUPVAL (LAST_TAG+2)
28#define LUA_TDEADKEY (NUM_TAGS+3) 30#define LUA_TDEADKEY (LAST_TAG+3)
29 31
30 32
31/* 33/*