diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-06 22:02:03 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-06 22:29:35 -0800 |
commit | 7fb36a0054436369aa2868490e2d102d8e75929c (patch) | |
tree | de7fb2c68791e34d130b2d7bf811a7609246e059 /include | |
parent | f68580890faef54a8000e3d9b79341dbd17c115e (diff) |
Remove obsoleted MJIT_STATIC macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7461
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/internal/dllexport.h | 19 | ||||
-rw-r--r-- | include/ruby/internal/intern/error.h | 2 |
2 files changed, 1 insertions, 20 deletions
diff --git a/include/ruby/internal/dllexport.h b/include/ruby/internal/dllexport.h index a540eece81..7f152441a9 100644 --- a/include/ruby/internal/dllexport.h +++ b/include/ruby/internal/dllexport.h @@ -59,25 +59,6 @@ # define RUBY_FUNC_EXPORTED /* void */ #endif -/** - * @cond INTERNAL_MACRO - * - * These MJIT related macros are placed here because translate_mjit_header can - * need them. Extension libraries should not touch. - */ - -/* These macros are used for functions which are exported only for MJIT - and NOT ensured to be exported in future versions. */ - -/* On mswin, MJIT header transformation can't be used since cl.exe can't output - preprocessed output preserving macros. So this `MJIT_STATIC` is needed - to force non-static function to static on MJIT header to avoid symbol conflict. */ -#ifdef MJIT_HEADER -# define MJIT_STATIC static -#else -# define MJIT_STATIC -#endif - /** @endcond */ /** Shortcut macro equivalent to `RUBY_SYMBOL_EXPORT_BEGIN extern "C" {`. diff --git a/include/ruby/internal/intern/error.h b/include/ruby/internal/intern/error.h index 9c153cbac5..bf8daadd3e 100644 --- a/include/ruby/internal/intern/error.h +++ b/include/ruby/internal/intern/error.h @@ -235,7 +235,7 @@ RBIMPL_ATTR_NORETURN() * @param[in] max Maximum allowed `argc`. * @exception rb_eArgError Always. */ -MJIT_STATIC void rb_error_arity(int argc, int min, int max); +void rb_error_arity(int argc, int min, int max); RBIMPL_SYMBOL_EXPORT_END() |