Mirai's Miscellaneous Misadventures

M42 / include / mimimi / coroutines.h

// license: AGPLv3 or later
// copyright 2023 zamfofex

#ifndef MIMIMI_COROUTINES_H
#define MIMIMI_COROUTINES_H

struct mimimi_behavior;
struct mimimi_coroutine_provider;
struct mimimi_allocator;

void mimimi_coroutine(struct mimimi_coroutine_provider *coroutines, struct mimimi_behavior *compound, void (*start)(struct mimimi_behavior *behavior, struct mimimi_behavior *compound, void *data), void *data, struct mimimi_allocator *allocator);

#endif