Skip to content
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

Rename variables used in the ExcCheck macros to avoid collisions #7

Merged

Conversation

hvoecking
Copy link

This PR fixes bugs which are caused for example by a call like this:

ExcCheckImpl(condition, "Null callback for " + msg[0]);

Which would result to:

std::string msg = ML::format("%s: %s", "Null callback for " + msg[0], "condition");

where msg is interpreted as the local macro variable (which is now renamed to) msg__. This would cause a segfault, because the variable created in the macro hasn't been initialized at that point.

RAttab added a commit that referenced this pull request Sep 2, 2013
…cros

Rename variables used in the ExcCheck macros to avoid collisions
@RAttab RAttab merged commit 30e5e7b into jeremybarnes:master Sep 2, 2013
jeremybarnes added a commit that referenced this pull request Jul 3, 2014
…t-erf

Allow turning off boost erf (which crashes valgrind) (PLAT-568)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants