]> granicus.if.org Git - vim/commitdiff
patch 8.2.3262: build failure when ABORT_ON_INTERNAL_ERROR is defined v8.2.3262
authorBram Moolenaar <Bram@vim.org>
Sat, 31 Jul 2021 20:17:28 +0000 (22:17 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 31 Jul 2021 20:17:28 +0000 (22:17 +0200)
Problem:    Build failure when ABORT_ON_INTERNAL_ERROR is defined.
Solution:   Adjust how estack_len_before is used.

src/ex_docmd.c
src/version.c

index 773a6bec9f7e02d172b2ffddeed92d522bd1ba63..c72e9c1b70c5d6fe5a87d32ad4746278a6299633 100644 (file)
@@ -664,8 +664,6 @@ do_cmdline(
 #endif
     static int call_depth = 0;         // recursiveness
 #ifdef FEAT_EVAL
-    ESTACK_CHECK_DECLARATION
-
     // For every pair of do_cmdline()/do_one_cmd() calls, use an extra memory
     // location for storing error messages to be converted to an exception.
     // This ensures that the do_errthrow() call in do_one_cmd() does not
@@ -1397,6 +1395,7 @@ handle_did_throw()
 {
     char       *p = NULL;
     msglist_T  *messages = NULL;
+    ESTACK_CHECK_DECLARATION
 
     /*
      * If the uncaught exception is a user exception, report it as an
index e3a6cb518306eabe2d351818d000a6f145ed83bc..fcfd211cb4140491125e401add3f145e0c85fbf7 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3262,
 /**/
     3261,
 /**/