summaryrefslogtreecommitdiffstats
path: root/Include/methodobject.h
blob: 9dd05b4da0429e912bb4a33635021454227b6e0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Method object interface */

extern typeobject Methodtype;

#define is_methodobject(op) ((op)->ob_type == &Methodtype)

typedef object *(*method) FPROTO((object *, object *));

extern object *newmethodobject PROTO((char *, method, object *));
extern method getmethod PROTO((object *));
extern object *getself PROTO((object *));

struct methodlist {
	char *ml_name;
	method ml_meth;
};

extern object *findmethod PROTO((struct methodlist *, object *, char *));