-
Notifications
You must be signed in to change notification settings - Fork 807
rename ENABLE_DEBUG to MRB_DEFINE_HOOKS #3014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Here are some reasons why it should be renamed: - ENABLE_DEBUG isn't prefixed (possible name clash with other libs) - the enable_debug build config method is totally unrelated to this - the new name MRB_DEFINE_HOOKS is more precise ENABLE_DEBUG and DISABLE_DEBUG will still work for backward compatibility but mruby users should update their code. E.g. to `#if defined MRB_DEFINE_HOOKS || defined ENABLE_DEBUG`.
It's OK to rename it, but I don't think |
And what do you think about another |
In any case, I think it should be prefixed with |
What about What do you think about |
Or |
I picked |
Okay. By the way, I've proposed |
@zzak probably I will rename |
Here are some reasons why it should be renamed:
ENABLE_DEBUG
isn't prefixed (possible name clash with other libs)enable_debug
build config method is totally unrelated to thisENABLE_DEBUG
andDISABLE_DEBUG
will still work for backward compatibility but mruby users should update their code. E.g. to#if defined MRB_DEFINE_HOOKS || defined ENABLE_DEBUG
.