aboutsummaryrefslogtreecommitdiff
path: root/src/lua/lopcodes.h
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-10-22 16:02:39 +0800
committerLi Jin <dragon-fly@qq.com>2020-10-22 16:02:39 +0800
commita51a728d847e790329e41c75928a81630200b63f (patch)
tree8cc8e93a7863649499537366acecb41525022a57 /src/lua/lopcodes.h
parentf6e603cc5bef133e5e368a81f677bea92bc405b5 (diff)
downloadyuescript-a51a728d847e790329e41c75928a81630200b63f.tar.gz
yuescript-a51a728d847e790329e41c75928a81630200b63f.tar.bz2
yuescript-a51a728d847e790329e41c75928a81630200b63f.zip
update Lua, fix cmakelists.txt.
Diffstat (limited to 'src/lua/lopcodes.h')
-rw-r--r--src/lua/lopcodes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lopcodes.h b/src/lua/lopcodes.h
index 122e5d2..120cdd9 100644
--- a/src/lua/lopcodes.h
+++ b/src/lua/lopcodes.h
@@ -261,7 +261,7 @@ OP_MMBINK,/* A B C k call C metamethod over R[A] and K[B] */
261OP_UNM,/* A B R[A] := -R[B] */ 261OP_UNM,/* A B R[A] := -R[B] */
262OP_BNOT,/* A B R[A] := ~R[B] */ 262OP_BNOT,/* A B R[A] := ~R[B] */
263OP_NOT,/* A B R[A] := not R[B] */ 263OP_NOT,/* A B R[A] := not R[B] */
264OP_LEN,/* A B R[A] := length of R[B] */ 264OP_LEN,/* A B R[A] := #R[B] (length operator) */
265 265
266OP_CONCAT,/* A B R[A] := R[A].. ... ..R[A + B - 1] */ 266OP_CONCAT,/* A B R[A] := R[A].. ... ..R[A + B - 1] */
267 267
@@ -297,7 +297,7 @@ OP_TFORPREP,/* A Bx create upvalue for R[A + 3]; pc+=Bx */
297OP_TFORCALL,/* A C R[A+4], ... ,R[A+3+C] := R[A](R[A+1], R[A+2]); */ 297OP_TFORCALL,/* A C R[A+4], ... ,R[A+3+C] := R[A](R[A+1], R[A+2]); */
298OP_TFORLOOP,/* A Bx if R[A+2] ~= nil then { R[A]=R[A+2]; pc -= Bx } */ 298OP_TFORLOOP,/* A Bx if R[A+2] ~= nil then { R[A]=R[A+2]; pc -= Bx } */
299 299
300OP_SETLIST,/* A B C k R[A][(C-1)*FPF+i] := R[A+i], 1 <= i <= B */ 300OP_SETLIST,/* A B C k R[A][C+i] := R[A+i], 1 <= i <= B */
301 301
302OP_CLOSURE,/* A Bx R[A] := closure(KPROTO[Bx]) */ 302OP_CLOSURE,/* A Bx R[A] := closure(KPROTO[Bx]) */
303 303