1 parent d36539d commit 8edc2e4Copy full SHA for 8edc2e4
1 file changed
py/runtime0.h
@@ -42,6 +42,8 @@
42
#define MP_NATIVE_TYPE_PTR16 (0x06)
43
#define MP_NATIVE_TYPE_PTR32 (0x07)
44
45
+// Note: the first 7 of these are used in bytecode and changing
46
+// them requires changing the bytecode version.
47
typedef enum {
48
MP_UNARY_OP_BOOL, // __bool__
49
MP_UNARY_OP_LEN, // __len__
@@ -54,6 +56,8 @@ typedef enum {
54
56
MP_UNARY_OP_SIZEOF, // for sys.getsizeof()
55
57
} mp_unary_op_t;
58
59
+// Note: the first 35 of these are used in bytecode and changing
60
61
62
// Relational operations, should return a bool
63
MP_BINARY_OP_LESS,
0 commit comments