From 9e6e39c3512f7a962c44dc3729c98a0f8be90341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Wed, 8 Apr 2020 13:28:13 +0900 Subject: Merge pull request #2991 from shyouhei/ruby.h Split ruby.h --- include/ruby/vm.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'include/ruby/vm.h') diff --git a/include/ruby/vm.h b/include/ruby/vm.h index b137a280c9..10f6224985 100644 --- a/include/ruby/vm.h +++ b/include/ruby/vm.h @@ -12,14 +12,9 @@ #ifndef RUBY_VM_H #define RUBY_VM_H 1 -#if defined(__cplusplus) -extern "C" { -#if 0 -} /* satisfy cc-mode */ -#endif -#endif +#include "ruby/3/dllexport.h" -RUBY_SYMBOL_EXPORT_BEGIN +RUBY3_SYMBOL_EXPORT_BEGIN() /* Place holder. * @@ -51,13 +46,6 @@ int ruby_vm_destruct(ruby_vm_t *vm); */ void ruby_vm_at_exit(void(*func)(ruby_vm_t *)); -RUBY_SYMBOL_EXPORT_END - -#if defined(__cplusplus) -#if 0 -{ /* satisfy cc-mode */ -#endif -} /* extern "C" { */ -#endif +RUBY3_SYMBOL_EXPORT_END() #endif /* RUBY_VM_H */ -- cgit v1.2.3