www.pudn.com > ANSI_C_OOP.rar > Point.r


#ifndef	POINT_R
#define	POINT_R

struct Point {
	const void * class;
	int x, y;				/* coordinates */
};

#define	x(p)	(((const struct Point *)(p)) -> x)
#define	y(p)	(((const struct Point *)(p)) -> y)

#endif