summaryrefslogtreecommitdiff
path: root/src/benchmarks/eo/class_simple.h
blob: 6460b0a5f57cae7f73ee107d375d4ad0008afa37 (plain)
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

typedef struct
{
   int a;
} Simple_Public_Data;

EAPI void simple_a_set(int a);
/* Calls simple_other_call(other, obj) and then simple_other_call(obj, other)
 * for 'times' times in order to grow the call stack on other objects. */
EAPI void simple_other_call(Eo *other, int times);

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

EOAPI extern const Eo_Event_Description _SIMPLE_FOO;
EOAPI extern const Eo_Event_Description _SIMPLE_BAR;

#define SIMPLE_FOO (&(_SIMPLE_FOO))
#define SIMPLE_BAR (&(_SIMPLE_BAR))

#endif