[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Catch arbitrary signal and throw it later in C
From: |
Ruijie Yu |
Subject: |
Re: Catch arbitrary signal and throw it later in C |
Date: |
Thu, 13 Apr 2023 15:33:50 +0800 |
User-agent: |
mu4e 1.9.22; emacs 30.0.50 |
Yuan Fu <casouri@gmail.com> writes:
> Say I have an arbitrary Lisp function func, and need to evaluate it in C. But
> after evaluating the function, I need to do some clean up (freeing
> something). Would be be possible to catch any signal thrown by evaluating the
> function func, and throw it after cleaning up?
Isn't `unwind-protect' (or its internal C functionalities) what you
want, or is it not suitable in Emacs-C land? This macro is defined in
C, FTR.
--
Best,
RY