2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-05 01:36:39 +08:00
artiq/soc/runtime/exceptions.h

16 lines
304 B
C

#ifndef __EXCEPTIONS_H
#define __EXCEPTIONS_H
#include <setjmp.h>
struct exception_env {
jmp_buf jb;
struct exception_env *prev;
};
int exception_catch(struct exception_env *ee, int *id);
void exception_pop(void);
void exception_raise(int id) __attribute__((noreturn));
#endif /* __EXCEPTIONS_H */