summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--basic/source/inc/runtime.hxx2
-rw-r--r--basic/source/runtime/runtime.cxx2
2 files changed, 1 insertions, 3 deletions
diff --git a/basic/source/inc/runtime.hxx b/basic/source/inc/runtime.hxx
index 11da4275c77b..532f0d9a4b17 100644
--- a/basic/source/inc/runtime.hxx
+++ b/basic/source/inc/runtime.hxx
@@ -81,7 +81,7 @@ struct SbiForStack { // for/next stack:
{}
};
-#define MAXRECURSION 500
+#define MAXRECURSION 500 //to prevent dead-recursions
enum class SbAttributes {
NONE = 0x0000,
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 59daf1531d2a..52f7c645c640 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -119,8 +119,6 @@ struct SbiArgv { // Argv stack:
nArgc(nArgc_) {}
};
-#define MAXRECURSION 500 //to prevent dead-recursions
-
struct SbiGosub { // GOSUB-Stack:
const sal_uInt8* pCode; // Return-Pointer
sal_uInt16 nStartForLvl; // #118235: For Level in moment of gosub