summaryrefslogblamecommitdiff
path: root/src/benchmarks/eo/class_simple.h
blob: ecfbfa7f9976ae92f2ac3d8e5fd56673c26ffc33 (plain) (tree)
1
2
3
4
5
6
7
8
9


                




                     
                                        

                                                                             
                                                           

                                       
                                       
 





                                                    
      
#ifndef SIMPLE_H
#define SIMPLE_H

typedef struct
{
   int a;
} Simple_Public_Data;

EAPI void simple_a_set(Eo *self, 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*self, 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