ruby-changes:72511
From: Nobuyoshi <ko1@a...>
Date: Tue, 12 Jul 2022 17:14:15 +0900 (JST)
Subject: [ruby-changes:72511] 8b98b9e274 (master): Check only whether `RUBY_DEVEL` is defined
https://git.ruby-lang.org/ruby.git/commit/?id=8b98b9e274 From 8b98b9e274ea0a749044e044ee03ee1095aa75d0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 12 Jul 2022 16:30:27 +0900 Subject: Check only whether `RUBY_DEVEL` is defined --- compile.c | 2 +- main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compile.c b/compile.c index 08895134bd..17f870e3e5 100644 --- a/compile.c +++ b/compile.c @@ -10713,7 +10713,7 @@ typedef unsigned int ibf_offset_t; https://github.com/ruby/ruby/blob/trunk/compile.c#L10713 #define IBF_OFFSET(ptr) ((ibf_offset_t)(VALUE)(ptr)) #define IBF_MAJOR_VERSION ISEQ_MAJOR_VERSION -#if RUBY_DEVEL +#ifdef RUBY_DEVEL #define IBF_DEVEL_VERSION 4 #define IBF_MINOR_VERSION (ISEQ_MINOR_VERSION * 10000 + IBF_DEVEL_VERSION) #else diff --git a/main.c b/main.c index e76228713f..0d0ec147cd 100644 --- a/main.c +++ b/main.c @@ -23,7 +23,7 @@ https://github.com/ruby/ruby/blob/trunk/main.c#L23 #ifdef HAVE_LOCALE_H #include <locale.h> #endif -#if RUBY_DEVEL && !defined RUBY_DEBUG_ENV +#if defined RUBY_DEVEL && !defined RUBY_DEBUG_ENV # define RUBY_DEBUG_ENV 1 #endif #if defined RUBY_DEBUG_ENV && !RUBY_DEBUG_ENV -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/