summaryrefslogtreecommitdiff
path: root/src/benchmarks/eo/class_simple.h
blob: 3e0a73c48df662f7311c78e06a5df24a16c0112f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef SIMPLE_H
#define SIMPLE_H

extern EAPI Eo_Op SIMPLE_BASE_ID;

enum {
     SIMPLE_SUB_ID_A_SET,
     SIMPLE_SUB_ID_LAST
};

typedef struct
{
   int a;
} Simple_Public_Data;

#define SIMPLE_ID(sub_id) (SIMPLE_BASE_ID + sub_id)

#define simple_a_set(a) SIMPLE_ID(SIMPLE_SUB_ID_A_SET), EO_TYPECHECK(int, a)

#define SIMPLE_CLASS simple_class_get()
const Eo *simple_class_get(void);

#endif