Print changes
This commit is contained in:
+13
@@ -153,4 +153,17 @@ static ALWAYS_INLINE LispVal *UNWIND_AND_RETURN(StackFrame *frame,
|
||||
}
|
||||
noreturn void continue_unwinding(void);
|
||||
|
||||
#define UNWIND_PROTECT(body, cleanup) \
|
||||
{ \
|
||||
jmp_buf _internal_jb; \
|
||||
if (setjmp(_internal_jb) == 0) { \
|
||||
push_unwind_protect_frame(&_internal_jb); \
|
||||
StackFrame *_internal_target = LISP_STACK_REF(); \
|
||||
{body}; \
|
||||
unwind_to(_internal_target); \
|
||||
} else { \
|
||||
cleanup \
|
||||
} \
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user