coroutines: get photonlib/coroutines working with GC

This commit is contained in:
Joe Conigliaro 2023-10-09 12:10:19 +11:00
parent 1f06476343
commit 9604a3f491
No known key found for this signature in database
GPG key ID: C12F7136C08206F1
3 changed files with 22 additions and 2 deletions

View file

@ -24,8 +24,10 @@ int photon_init_default();
void photon_thread_create(void* (* f)(void*), void* arg);
void photon_sleep_s(int n);
void photon_sleep_ms(int n);
void set_photon_thread_stack_allocator(
void* (*alloc_func)(void*, size_t),
void (*dealloc_func)(void*, void*, size_t)
);
#ifdef __cplusplus
}