X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84ed556b8c7cf58207b813f2104075767c837d36..995f4b8d55d3c6f2047962c524fdfab415d7a1ac:/src/simix/private.h diff --git a/src/simix/private.h b/src/simix/private.h index d58d6e5b62..bca64533bb 100644 --- a/src/simix/private.h +++ b/src/simix/private.h @@ -213,19 +213,16 @@ void SIMIX_context_mod_exit(void); /* the following function pointers types describe the interface that all context concepts must implement */ -/* each context type must contain this macro at its begining -- OOP in C :/ */ -#define SMX_CTX_BASE_T \ - s_xbt_swag_hookup_t hookup; \ - xbt_main_func_t code; \ - int argc; \ - char **argv; \ - void_f_pvoid_t cleanup_func; \ - void *cleanup_arg; \ - -/* all other context types derive from this structure */ +/* each context type derive from this structure, so they must contain this structure + * at their begining -- OOP in C :/ */ typedef struct s_smx_context { - SMX_CTX_BASE_T; -} s_smx_context_t; + s_xbt_swag_hookup_t hookup; + xbt_main_func_t code; + int argc; + char **argv; + void_f_pvoid_t cleanup_func; + void *cleanup_arg; +} s_smx_ctx_base_t; /* *********************** */ /* factory type definition */