You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/scratchcpp/virtualmachine.h
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -71,16 +71,16 @@ enum Opcode
71
71
OP_LIST_LENGTH, /*!< Stores the length of the list with the index in the argument, in the last register. */
72
72
OP_LIST_CONTAINS, /*!< Stores true in the last register if the list with the index in the argument contains the value from the last register. */
73
73
OP_STR_CONCAT, /*!< Concatenates the strings stored in the last 2 registers and stores the result in the last register, deleting the input registers. */
74
-
OP_STR_AT, /*! Stores the character at index in the last register of the string in the second last register, in the last register. */
75
-
OP_STR_LENGTH, /*! Stores the length of the string in the last register, in the last register. */
76
-
OP_STR_CONTAINS, /*! Stores true in the last register if the string stored in the second last register contains the substring in the last register. */
74
+
OP_STR_AT, /*!< Stores the character at index in the last register of the string in the second last register, in the last register. */
75
+
OP_STR_LENGTH, /*!< Stores the length of the string in the last register, in the last register. */
76
+
OP_STR_CONTAINS, /*!< Stores true in the last register if the string stored in the second last register contains the substring in the last register. */
77
77
OP_EXEC, /*!< Calls the function with the index in the argument. */
78
78
OP_INIT_PROCEDURE, /*!< Initializes the list of procedure (custom block) arguments. */
79
79
OP_CALL_PROCEDURE, /*! Calls the procedure (custom block) with the index in the argument. */
80
80
OP_ADD_ARG, /*!< Adds a procedure (custom block) argument with the value from the last register. */
81
81
OP_READ_ARG, /*!< Reads the procedure (custom block) argument with the index in the argument and stores the value in the last register. */
82
82
OP_BREAK_FRAME, /*!< Breaks current frame at the end of the loop. */
83
-
OP_WARP /*! Runs the script without screen refresh. */
83
+
OP_WARP /*!< Runs the script without screen refresh. */
84
84
};
85
85
86
86
}
@@ -133,6 +133,8 @@ class LIBSCRATCHCPP_EXPORT VirtualMachine
0 commit comments