Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 1 | /* Method object interface */ |
2 | |||||
3 | extern typeobject Methodtype; | ||||
4 | |||||
5 | #define is_methodobject(op) ((op)->ob_type == &Methodtype) | ||||
6 | |||||
7 | typedef object *(*method) FPROTO((object *, object *)); | ||||
8 | |||||
9 | extern object *newmethodobject PROTO((char *, method, object *)); | ||||
10 | extern method getmethod PROTO((object *)); | ||||
11 | extern object *getself PROTO((object *)); |