From e3dd65f761fdb01eacc106a1d993d4dccef14462 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 1 Nov 2022 17:25:27 +0900 Subject: [PATCH] throw.h: simplified a compilation conditional. --- include/mruby/throw.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/mruby/throw.h b/include/mruby/throw.h index 8ec1aa7ae..547eea12c 100644 --- a/include/mruby/throw.h +++ b/include/mruby/throw.h @@ -7,10 +7,8 @@ #ifndef MRB_THROW_H #define MRB_THROW_H -#if defined(MRB_USE_CXX_ABI) -# if !defined(__cplusplus) +#if defined(MRB_USE_CXX_ABI) && !defined(__cplusplus) # error Trying to use C++ exception handling in C code -# endif #endif #if defined(MRB_USE_CXX_EXCEPTION)