Skip to content

Instantly share code, notes, and snippets.

@shlevy
Last active December 19, 2015 18:58
Show Gist options
  • Select an option

  • Save shlevy/6002219 to your computer and use it in GitHub Desktop.

Select an option

Save shlevy/6002219 to your computer and use it in GitHub Desktop.
abort is not called, but printMsg is
void ExprWith::eval(EvalState & state, Env & env, Value & v)
{
Env & env2(state.allocEnv(1));
if (env2.values[0] != 0)
abort();
env2.up = &env;
if (env2.values[0] != 0)
abort();
env2.prevWith = prevWith;
if (env2.values[0] != 0)
abort();
env2.withAttrs = attrs;
if (env2.values[0] != 0)
abort();
body->eval(state, env2, v);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment