aboutsummaryrefslogtreecommitdiff
path: root/src/lua/lopcodes.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/lopcodes.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/lopcodes.h')
-rw-r--r--src/lua/lopcodes.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lua/lopcodes.h b/src/lua/lopcodes.h
index 120cdd9..d6a47e5 100644
--- a/src/lua/lopcodes.h
+++ b/src/lua/lopcodes.h
@@ -225,13 +225,13 @@ OP_SELF,/* A B C R[A+1] := R[B]; R[A] := R[B][RK(C):string] */
225 225
226OP_ADDI,/* A B sC R[A] := R[B] + sC */ 226OP_ADDI,/* A B sC R[A] := R[B] + sC */
227 227
228OP_ADDK,/* A B C R[A] := R[B] + K[C] */ 228OP_ADDK,/* A B C R[A] := R[B] + K[C]:number */
229OP_SUBK,/* A B C R[A] := R[B] - K[C] */ 229OP_SUBK,/* A B C R[A] := R[B] - K[C]:number */
230OP_MULK,/* A B C R[A] := R[B] * K[C] */ 230OP_MULK,/* A B C R[A] := R[B] * K[C]:number */
231OP_MODK,/* A B C R[A] := R[B] % K[C] */ 231OP_MODK,/* A B C R[A] := R[B] % K[C]:number */
232OP_POWK,/* A B C R[A] := R[B] ^ K[C] */ 232OP_POWK,/* A B C R[A] := R[B] ^ K[C]:number */
233OP_DIVK,/* A B C R[A] := R[B] / K[C] */ 233OP_DIVK,/* A B C R[A] := R[B] / K[C]:number */
234OP_IDIVK,/* A B C R[A] := R[B] // K[C] */ 234OP_IDIVK,/* A B C R[A] := R[B] // K[C]:number */
235 235
236OP_BANDK,/* A B C R[A] := R[B] & K[C]:integer */ 236OP_BANDK,/* A B C R[A] := R[B] & K[C]:integer */
237OP_BORK,/* A B C R[A] := R[B] | K[C]:integer */ 237OP_BORK,/* A B C R[A] := R[B] | K[C]:integer */