diff options
| author | Andrea Corallo | 2019-11-20 22:37:09 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:38:08 +0100 |
| commit | 23874aee8825a6f670b6c2da9eca2d9cf643b3af (patch) | |
| tree | 2df3a51afcaefbe18577a9c3b4721f258265c09d /src/comp.c | |
| parent | 4fe02acb6b0556c4b17c7a8e01f41698f5109512 (diff) | |
| download | emacs-23874aee8825a6f670b6c2da9eca2d9cf643b3af.tar.gz emacs-23874aee8825a6f670b6c2da9eca2d9cf643b3af.zip | |
define internal-native-compiler-error as error
Diffstat (limited to 'src/comp.c')
| -rw-r--r-- | src/comp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c index b3e61297513..f7950bcc72c 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -214,9 +214,9 @@ static void | |||
| 214 | ice (const char* msg) | 214 | ice (const char* msg) |
| 215 | { | 215 | { |
| 216 | if (msg) | 216 | if (msg) |
| 217 | error ("Internal native compiler error: %s", msg); | 217 | xsignal1 (Qinternal_native_compiler_error, build_string (msg)); |
| 218 | else | 218 | else |
| 219 | error ("Internal native compiler error"); | 219 | xsignal0 (Qinternal_native_compiler_error); |
| 220 | } | 220 | } |
| 221 | 221 | ||
| 222 | static void | 222 | static void |
| @@ -3396,6 +3396,12 @@ syms_of_comp (void) | |||
| 3396 | DEFSYM (Qadvice, "advice"); | 3396 | DEFSYM (Qadvice, "advice"); |
| 3397 | 3397 | ||
| 3398 | /* To be signaled. */ | 3398 | /* To be signaled. */ |
| 3399 | DEFSYM (Qinternal_native_compiler_error, "internal-native-compiler-error"); | ||
| 3400 | Fput (Qinternal_native_compiler_error, Qerror_conditions, | ||
| 3401 | pure_list (Qinternal_native_compiler_error, Qerror)); | ||
| 3402 | Fput (Qinternal_native_compiler_error, Qerror_message, | ||
| 3403 | build_pure_c_string ("Internal native compiler error")); | ||
| 3404 | |||
| 3399 | DEFSYM (Qnative_lisp_load_failed, "native-lisp-load-failed"); | 3405 | DEFSYM (Qnative_lisp_load_failed, "native-lisp-load-failed"); |
| 3400 | Fput (Qnative_lisp_load_failed, Qerror_conditions, | 3406 | Fput (Qnative_lisp_load_failed, Qerror_conditions, |
| 3401 | pure_list (Qnative_lisp_load_failed, Qerror)); | 3407 | pure_list (Qnative_lisp_load_failed, Qerror)); |