Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a6dfa7

Browse files
committed
Added shifting and masking ops to as_number struct
1 parent d18ad58 commit 7a6dfa7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Include/object.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ typedef struct {
136136
object *(*nb_positive) FPROTO((object *));
137137
object *(*nb_absolute) FPROTO((object *));
138138
int (*nb_nonzero) FPROTO((object *));
139+
object *(*nb_invert) FPROTO((object *));
140+
object *(*nb_lshift) FPROTO((object *, object *));
141+
object *(*nb_rshift) FPROTO((object *, object *));
142+
object *(*nb_and) FPROTO((object *, object *));
143+
object *(*nb_xor) FPROTO((object *, object *));
144+
object *(*nb_or) FPROTO((object *, object *));
139145
} number_methods;
140146

141147
typedef struct {

0 commit comments

Comments
 (0)