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

Skip to content

Commit 97ad2d8

Browse files
committed
Added divmod and abs methods for numbers
1 parent 05ab111 commit 97ad2d8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Include/object.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ typedef struct {
130130
object *(*nb_multiply) FPROTO((object *, object *));
131131
object *(*nb_divide) FPROTO((object *, object *));
132132
object *(*nb_remainder) FPROTO((object *, object *));
133+
object *(*nb_divmod) FPROTO((object *, object *));
133134
object *(*nb_power) FPROTO((object *, object *));
134135
object *(*nb_negative) FPROTO((object *));
135136
object *(*nb_positive) FPROTO((object *));
137+
object *(*nb_absolute) FPROTO((object *));
136138
} number_methods;
137139

138140
typedef struct {

0 commit comments

Comments
 (0)