aboutsummaryrefslogtreecommitdiff
path: root/src/lua/lobject.h
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-03-03 21:31:01 +0800
committerLi Jin <dragon-fly@qq.com>2021-03-03 21:33:37 +0800
commit1df786307c1983b8ce693e3916081a8bcd4e95ae (patch)
tree6c7aeb2198d825877fd3d179c394b7a5c1f06a17 /src/lua/lobject.h
parent66168b112b707172b9035edf8c1daed469781e06 (diff)
downloadyuescript-1df786307c1983b8ce693e3916081a8bcd4e95ae.tar.gz
yuescript-1df786307c1983b8ce693e3916081a8bcd4e95ae.tar.bz2
yuescript-1df786307c1983b8ce693e3916081a8bcd4e95ae.zip
add new metatable syntax for issue #41, fix reusing local variable issue, update built-in Lua.
Diffstat (limited to 'src/lua/lobject.h')
-rw-r--r--src/lua/lobject.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lua/lobject.h b/src/lua/lobject.h
index 470b17d..1a7a737 100644
--- a/src/lua/lobject.h
+++ b/src/lua/lobject.h
@@ -136,10 +136,18 @@ typedef struct TValue {
136 136
137 137
138/* 138/*
139** Entries in the Lua stack 139** Entries in a Lua stack. Field 'tbclist' forms a list of all
140** to-be-closed variables active in this stack. Dummy entries are
141** used when the distance between two tbc variables does not fit
142** in an unsigned short.
140*/ 143*/
141typedef union StackValue { 144typedef union StackValue {
142 TValue val; 145 TValue val;
146 struct {
147 TValuefields;
148 lu_byte isdummy;
149 unsigned short delta;
150 } tbclist;
143} StackValue; 151} StackValue;
144 152
145 153