From 0f5cb955662136ad4a93e35db5721dd986dfd55b Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 5 Sep 2014 11:21:38 +0300 Subject: Add builtin functions to FUNCTAB and PROCINFO["identifiers"] and doc. --- interpret.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'interpret.h') diff --git a/interpret.h b/interpret.h index fee8136e..28804330 100644 --- a/interpret.h +++ b/interpret.h @@ -1039,12 +1039,13 @@ match_re: } if (f == NULL) { + fatal(_("`%s' is not a function, so it cannot be called indirectly"), + t1->stptr); + } else if (f->type == Node_builtin_func) { int arg_count = (pc + 1)->expr_count; builtin_func_t the_func = lookup_builtin(t1->stptr); - if (the_func == NULL) - fatal(_("`%s' is not a user-defined function, so it cannot be called indirectly"), - t1->stptr); + assert(the_func != NULL); /* call it */ r = the_func(arg_count); -- cgit v1.2.3