Login
7 branches 0 tags
Ben (Win10) Revert "Added new GH action, macos11 and older/newer Win" d9e506d 4 years ago 299 Commits
nujel / lib / exception.h
#pragma once
#include "nujel.h"
#include <setjmp.h>

extern jmp_buf exceptionTarget;
extern lVal *exceptionValue;
extern int exceptionTargetDepth;

void  lExceptionThrowRaw    (lVal *v) __attribute__((noreturn));
void  lExceptionThrow       (const char *symbol, const char *error) __attribute__((noreturn));
void  lExceptionThrowVal    (const char *symbol, const char *error, lVal *v) __attribute__((noreturn));
void  lExceptionThrowValClo (const char *symbol, const char *error, lVal *v, lClosure *c) __attribute__((noreturn));
void *lExceptionTry         (void *(*body)(void *,void *), void *a, void *b);