Skip to content

Commit c9ec836

Browse files
committed
More fixes for function call
1 parent 54a3d8d commit c9ec836

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/expr/evaluator.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,12 @@ namespace lsp
11961196
}
11971197

11981198
// Now we can perform call
1199-
return env->call(value, expr->call.name, expr->call.count, args);
1199+
res = env->call(value, expr->call.name, expr->call.count, args);
1200+
if (res != STATUS_NOT_FOUND)
1201+
return res;
1202+
1203+
set_value_undef(value);
1204+
return STATUS_OK;
12001205
}
12011206

12021207
status_t eval_value(value_t *value, const expr_t *expr, eval_env_t *env)

0 commit comments

Comments
 (0)