odyssey/sources/mm_context.h

25 lines
443 B
C
Raw Normal View History

2017-05-24 11:04:19 +00:00
#ifndef MM_CONTEXT_H
#define MM_CONTEXT_H
/*
* machinarium.
*
* cooperative multitasking engine.
*/
typedef void (*mm_context_function_t)(void*);
2017-05-24 11:04:19 +00:00
typedef struct mm_context mm_context_t;
2017-05-16 13:58:06 +00:00
2017-05-24 11:04:19 +00:00
struct mm_context
{
2017-05-16 13:58:06 +00:00
void **sp;
};
void mm_context_create(mm_context_t*, mm_contextstack_t*,
mm_context_function_t,
2017-05-16 13:58:06 +00:00
void*);
void mm_context_swap(mm_context_t*, mm_context_t*);
2017-05-24 11:04:19 +00:00
#endif /* MM_CONTEXT_H */