Login
7 branches 0 tags
Ben (RPI 4) More tests, new funcs for ints -> bin/oct/hex strings 66664fb 4 years ago 144 Commits
nujel / lib / exception.h
#pragma once
#include "nujel.h"
#include <setjmp.h>

extern jmp_buf exceptionTarget;
extern lVal *exceptionValue;

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));