api: Add warnings about the returned value to \*del_var functions

This commit is contained in:
ZyX
2016-03-17 23:31:31 +03:00
parent 4f8b686435
commit 25bb08dad9
5 changed files with 16 additions and 5 deletions

View File

@@ -349,7 +349,10 @@ Object vim_set_var(String name, Object value, Error *err)
///
/// @param name The variable name
/// @param[out] err Details of an error that may have occurred
/// @return the old value if any
/// @return The old value or nil if there was no previous value.
///
/// @warning It may return nil if there was no previous value
/// or if previous value was `v:null`.
Object vim_del_var(String name, Error *err)
{
return dict_set_value(&globvardict, name, NIL, true, err);