allow h_bind's function argument to return NULL as a shortcut for h_nothing_p()
This commit is contained in:
parent
42d51ed479
commit
78266af453
3 changed files with 21 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue