allow h_bind's function argument to return NULL as a shortcut for h_nothing_p()

This commit is contained in:
Sven M. Hallberg 2015-01-23 22:06:43 +01:00
parent 42d51ed479
commit 78266af453
3 changed files with 21 additions and 11 deletions

View file

@ -14,6 +14,9 @@ static HParseResult *parse_bind(void *be_, HParseState *state) {
return NULL;
HParser *kx = be->k(res->ast, be->env);
if(!kx)
return NULL;
return h_do_parse(kx, state);
}