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

@ -675,7 +675,7 @@ HAMMER_FN_DECL(HParser*, h_get_value, const char* name);
* Sequencing where later parsers may depend on the result(s) of earlier ones.
*
* Run p and call the result x. Then run k(env,x). Fail if p fails or if
* k(env,x) fails.
* k(env,x) fails or if k(env,x) is NULL.
*
* Result: the result of k(x,env).
*/