Mercurial > vim
comparison src/eval.c @ 24895:e61a2085c89b v8.2.2985
patch 8.2.2985: Vim9: a compiled function cannot be debugged
Commit: https://github.com/vim/vim/commit/e99d422bbd3e47620915bf89671673f0711671b4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 13 14:01:26 2021 +0200
patch 8.2.2985: Vim9: a compiled function cannot be debugged
Problem: Vim9: a compiled function cannot be debugged.
Solution: Add initial debugging support.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jun 2021 14:15:04 +0200 |
parents | 0cba2be8cbd7 |
children | 21ec48d542a8 |
comparison
equal
deleted
inserted
replaced
24894:6270bfeab91f | 24895:e61a2085c89b |
---|---|
3534 // type is optional, when it's missing use t_unknown. | 3534 // type is optional, when it's missing use t_unknown. |
3535 // This is recognized in compile_return(). | 3535 // This is recognized in compile_return(). |
3536 if (ufunc->uf_ret_type->tt_type == VAR_VOID) | 3536 if (ufunc->uf_ret_type->tt_type == VAR_VOID) |
3537 ufunc->uf_ret_type = &t_unknown; | 3537 ufunc->uf_ret_type = &t_unknown; |
3538 if (compile_def_function(ufunc, | 3538 if (compile_def_function(ufunc, |
3539 FALSE, PROFILING(ufunc), NULL) == FAIL) | 3539 FALSE, COMPILE_TYPE(ufunc), NULL) == FAIL) |
3540 { | 3540 { |
3541 clear_tv(rettv); | 3541 clear_tv(rettv); |
3542 ret = FAIL; | 3542 ret = FAIL; |
3543 } | 3543 } |
3544 } | 3544 } |