Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/libco_debugging/libco.h
2 views
1
/*
2
libco
3
version: 0.16 (2010-12-24)
4
license: public domain
5
*/
6
7
#ifndef LIBCO_H
8
#define LIBCO_H
9
10
#ifdef LIBCO_C
11
#ifdef LIBCO_MP
12
#define thread_local __thread
13
#else
14
#define thread_local
15
#endif
16
#endif
17
18
#ifdef __cplusplus
19
extern "C" {
20
#endif
21
22
typedef void* cothread_t;
23
24
cothread_t co_active();
25
cothread_t co_create(unsigned int, void (*)(void));
26
void co_delete(cothread_t);
27
void co_switch(cothread_t);
28
29
#ifdef __cplusplus
30
}
31
#endif
32
33
/* ifndef LIBCO_H */
34
#endif
35
36