summaryrefslogtreecommitdiff
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-28 16:56:53 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-28 16:56:53 +0200
commit65a5464985f980d2bbbf4e14d39d416dce065ec7 (patch)
tree0db9a9e8471d385f544a6191b123bc01e895f9c8 /src/proto
parent9b25af36204c0511eab08d621688f0f2008fc68e (diff)
downloadvim-git-65a5464985f980d2bbbf4e14d39d416dce065ec7.tar.gz
patch 8.0.1770: assert functions don't return anythingv8.0.1770
Problem: Assert functions don't return anything. Solution: Return non-zero when the assertion fails.
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/eval.pro18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/proto/eval.pro b/src/proto/eval.pro
index 6f16ce0de..3bbe8154a 100644
--- a/src/proto/eval.pro
+++ b/src/proto/eval.pro
@@ -121,15 +121,15 @@ void last_set_msg(scid_T scriptID);
void reset_v_option_vars(void);
void prepare_assert_error(garray_T *gap);
void assert_error(garray_T *gap);
-void assert_equal_common(typval_T *argvars, assert_type_T atype);
-void assert_equalfile(typval_T *argvars);
-void assert_match_common(typval_T *argvars, assert_type_T atype);
-void assert_inrange(typval_T *argvars);
-void assert_bool(typval_T *argvars, int isTrue);
-void assert_report(typval_T *argvars);
-void assert_exception(typval_T *argvars);
-void assert_beeps(typval_T *argvars);
-void assert_fails(typval_T *argvars);
+int assert_equal_common(typval_T *argvars, assert_type_T atype);
+int assert_equalfile(typval_T *argvars);
+int assert_match_common(typval_T *argvars, assert_type_T atype);
+int assert_inrange(typval_T *argvars);
+int assert_bool(typval_T *argvars, int isTrue);
+int assert_report(typval_T *argvars);
+int assert_exception(typval_T *argvars);
+int assert_beeps(typval_T *argvars);
+int assert_fails(typval_T *argvars);
void fill_assert_error(garray_T *gap, typval_T *opt_msg_tv, char_u *exp_str, typval_T *exp_tv, typval_T *got_tv, assert_type_T atype);
int typval_compare(typval_T *typ1, typval_T *typ2, exptype_T type, int type_is, int ic);
char_u *typval_tostring(typval_T *arg);