libucontext.h: add C++ externs

master
Ariadne Conill 2023-05-18 18:11:50 -07:00
parent 0f625a86ee
commit 4c2cfc54ac
1 changed files with 8 additions and 0 deletions

View File

@ -4,9 +4,17 @@
#include <stddef.h>
#include <libucontext/bits.h>
#ifdef __cplusplus
extern "C" {
#endif
int libucontext_getcontext(libucontext_ucontext_t *);
void libucontext_makecontext(libucontext_ucontext_t *, void (*)(), int, ...);
int libucontext_setcontext(const libucontext_ucontext_t *);
int libucontext_swapcontext(libucontext_ucontext_t *, const libucontext_ucontext_t *);
#ifdef __cplusplus
}
#endif
#endif