diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-10 15:45:17 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-10 15:48:09 +0200 |
commit | d33d86fae9b72b352a335488e2e1401e3b0c66a1 (patch) | |
tree | 709972eb83c809860f0beab06cd666a5bd6e0c5e /eval.c | |
parent | 05b5b677afa6af3026da2c49222ac8358992392d (diff) |
eval: fix function return value handling in expressions
Since ut_invoke() takes care of unwrapping magic null, we don't need any
special treatment for T_RETURN tags when processing expressions.
Also drop T_BREAK case while we're at it since it cannot happen in this
context.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -970,13 +970,6 @@ ut_execute_exp(struct ut_state *state, uint32_t off) struct ut_op *tag = val ? json_object_get_userdata(val) : NULL; switch (tag ? tag->type : 0) { - case T_RETURN: - ut_write_str(tag->val); - break; - - case T_BREAK: - return val; - case T_EXCEPTION: printf("<exception: %s>", json_object_get_string(val)); break; |