From c68d3dcbac066b24b48ba03d4b5c28a64b898cf5 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 31 Oct 2022 16:32:58 +0900 Subject: [PATCH] vm.c: stop wrapping implementation by `extern "C"`. --- src/vm.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/vm.c b/src/vm.c index 586585079..2cb5b1150 100644 --- a/src/vm.c +++ b/src/vm.c @@ -28,16 +28,10 @@ extern "C" { #endif void abort(void); #if defined(__cplusplus) -} /* extern "C" { */ +} /* extern "C" */ #endif #endif -#if defined(MRB_USE_CXX_EXCEPTION) && defined(__cplusplus) -# if !defined(MRB_USE_CXX_ABI) -extern "C" { -# endif -#endif - #define STACK_INIT_SIZE 128 #define CALLINFO_INIT_SIZE 32 @@ -3124,8 +3118,5 @@ mrb_top_run(mrb_state *mrb, const struct RProc *proc, mrb_value self, mrb_int st } #if defined(MRB_USE_CXX_EXCEPTION) && defined(__cplusplus) -# if !defined(MRB_USE_CXX_ABI) -} /* end of extern "C" */ -# endif mrb_int mrb_jmpbuf_id = 0; #endif