Skip to content

Commit

Permalink
Allow changing RUBY_PATCHLEVEL_STR if RUBY_PATCHLEVEL == -1 (ruby#8578)
Browse files Browse the repository at this point in the history
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
  • Loading branch information
k0kubun and nobu committed Oct 3, 2023
1 parent 32baa2c commit 68df437
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions version.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,15 @@
#endif

#if RUBY_PATCHLEVEL == -1
#define RUBY_PATCHLEVEL_STR "dev"
# ifdef RUBY_PATCHLEVEL_NAME
# define RUBY_PATCHLEVEL_STR STRINGIZE(RUBY_PATCHLEVEL_NAME)
# else
# define RUBY_PATCHLEVEL_STR "dev"
# endif
#elif defined RUBY_ABI_VERSION
#error RUBY_ABI_VERSION is defined in non-development branch
# error RUBY_ABI_VERSION is defined in non-development branch
#else
#define RUBY_PATCHLEVEL_STR ""
# define RUBY_PATCHLEVEL_STR ""
#endif

#endif /* RUBY_TOPLEVEL_VERSION_H */

0 comments on commit 68df437

Please sign in to comment.