diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-13 19:35:12 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-29 10:08:46 +0300 |
commit | f0bbd1e825841c55a1f75d66a9caeaa50cc2259c (patch) | |
tree | af08d2e2ea80ceb201ac1ae1d57ee25dca0f7371 /src/nvim/eval/typval.c | |
parent | e43de6bb3e1efb58669ab904c5672f4ae87003c0 (diff) | |
download | rneovim-f0bbd1e825841c55a1f75d66a9caeaa50cc2259c.tar.gz rneovim-f0bbd1e825841c55a1f75d66a9caeaa50cc2259c.tar.bz2 rneovim-f0bbd1e825841c55a1f75d66a9caeaa50cc2259c.zip |
unittests: Add tests for tv_clear()
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r-- | src/nvim/eval/typval.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index 620da0032e..c245b9222e 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -1840,10 +1840,11 @@ static inline void _nothing_conv_dict_end(typval_T *const tv, /// Free memory for a variable value and set the value to NULL or 0 /// /// @param[in,out] tv Value to free. -void tv_clear(typval_T *tv) +void tv_clear(typval_T *const tv) { if (tv != NULL && tv->v_type != VAR_UNKNOWN) { - const int evn_ret = encode_vim_to_nothing(NULL, tv, "tv_clear argument"); + const int evn_ret = encode_vim_to_nothing(NULL, tv, + _("tv_clear() argument")); (void)evn_ret; assert(evn_ret == OK); } |