~qpfiffer/lair

825e6a4e56d9bad38eb393e39892b5c4ba8de0a6 — Quinlan Pfiffer 3 months ago 4cadc27 master
Don't need to check here, just use throw_exception.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/eval.c
M src/eval.c => src/eval.c +1 -1
@@ 265,7 265,7 @@ static const struct _lair_type *_lair_call_function(struct _lair_runtime *r, con
	if (!_is_callable(ast_node)) {
		char buf[512] = {0};
		snprintf(buf, sizeof(buf), "Cannot call a non-function: %s", _friendly_enum(ast_node->atom.type));
		check(r, _is_callable(ast_node), ERR_RUNTIME, buf);
		throw_exception(r, ERR_RUNTIME, buf);
	}
	/* Determine if the thing we're trying to call is a function
	 * or not. It might be an atom, in which case we need to check