2012-04-05 08:31:15 -07:00
|
|
|
#ifndef SIMPLE_H
|
|
|
|
#define SIMPLE_H
|
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
extern EAPI Eo_Op SIMPLE_BASE_ID;
|
2012-04-05 08:31:15 -07:00
|
|
|
|
|
|
|
enum {
|
2012-08-23 03:47:11 -07:00
|
|
|
SIMPLE_SUB_ID_CONSTRUCTOR,
|
2012-04-05 08:31:15 -07:00
|
|
|
SIMPLE_SUB_ID_A_SET,
|
|
|
|
SIMPLE_SUB_ID_A_GET,
|
|
|
|
SIMPLE_SUB_ID_B_SET,
|
|
|
|
SIMPLE_SUB_ID_B_GET,
|
|
|
|
SIMPLE_SUB_ID_LAST
|
|
|
|
};
|
|
|
|
|
|
|
|
#define SIMPLE_ID(sub_id) (SIMPLE_BASE_ID + sub_id)
|
|
|
|
|
2012-08-23 03:47:11 -07:00
|
|
|
#define simple_constructor(a) SIMPLE_ID(SIMPLE_SUB_ID_CONSTRUCTOR), EO_TYPECHECK(int, a)
|
2012-05-01 00:40:14 -07:00
|
|
|
#define simple_a_set(a) SIMPLE_ID(SIMPLE_SUB_ID_A_SET), EO_TYPECHECK(int, a)
|
|
|
|
#define simple_a_get(a) SIMPLE_ID(SIMPLE_SUB_ID_A_GET), EO_TYPECHECK(int *, a)
|
|
|
|
#define simple_b_set(b) SIMPLE_ID(SIMPLE_SUB_ID_B_SET), EO_TYPECHECK(int, b)
|
|
|
|
#define simple_b_get(b) SIMPLE_ID(SIMPLE_SUB_ID_B_GET), EO_TYPECHECK(int *, b)
|
2012-04-05 08:31:15 -07:00
|
|
|
|
|
|
|
#define SIMPLE_CLASS simple_class_get()
|
2012-06-10 07:56:15 -07:00
|
|
|
const Eo_Class *simple_class_get(void);
|
2012-04-05 08:31:15 -07:00
|
|
|
|
|
|
|
#endif
|