Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
circuitpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
circuitpython
Commits
8edc2e4b
Commit
8edc2e4b
authored
Sep 22, 2017
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py/runtime0: Add comments about unary/binary-op enums used in bytecode.
parent
d36539df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
py/runtime0.h
py/runtime0.h
+4
-0
No files found.
py/runtime0.h
View file @
8edc2e4b
...
...
@@ -42,6 +42,8 @@
#define MP_NATIVE_TYPE_PTR16 (0x06)
#define MP_NATIVE_TYPE_PTR32 (0x07)
// Note: the first 7 of these are used in bytecode and changing
// them requires changing the bytecode version.
typedef
enum
{
MP_UNARY_OP_BOOL
,
// __bool__
MP_UNARY_OP_LEN
,
// __len__
...
...
@@ -54,6 +56,8 @@ typedef enum {
MP_UNARY_OP_SIZEOF
,
// for sys.getsizeof()
}
mp_unary_op_t
;
// Note: the first 35 of these are used in bytecode and changing
// them requires changing the bytecode version.
typedef
enum
{
// Relational operations, should return a bool
MP_BINARY_OP_LESS
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment