summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-12-20 19:57:28 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-12-20 20:09:51 -0500
commit9c09211bce7ed8e85ba75d8702e3d8703f9dc662 (patch)
tree22c891dc4d75431a19400d8108567ebfb6f10517 /include
parentefb30219a1113ee08bf26160a08b4f721a514fdf (diff)
Add internal cell function __DEBUG_VAR to sniff arbitrary internal state.
Useful for debugging in a more flashy way. But never ever document this for end users. If you are an end user reading this, use this at your own risk. You have been warned. Change-Id: Ibbdb45f576287f707106327704754ffaec27ba3c
Diffstat (limited to 'include')
-rw-r--r--include/formula/compiler.hrc5
-rw-r--r--include/formula/opcode.hxx1
2 files changed, 4 insertions, 2 deletions
diff --git a/include/formula/compiler.hrc b/include/formula/compiler.hrc
index 3b7207c5883d..ffab76715c45 100644
--- a/include/formula/compiler.hrc
+++ b/include/formula/compiler.hrc
@@ -450,10 +450,11 @@
/*** Internal ***/
#define SC_OPCODE_INTERNAL_BEGIN 9999
#define SC_OPCODE_TTT 9999
-#define SC_OPCODE_INTERNAL_END 9999
+#define SC_OPCODE_DEBUG_VAR 10000
+#define SC_OPCODE_INTERNAL_END 10000
/*** from here on ExtraData contained ***/
-#define SC_OPCODE_DATA_TOKEN_1 10000
+#define SC_OPCODE_DATA_TOKEN_1 10001
#define SC_OPCODE_NONE 0xFFFF
diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx
index d978a2654834..ce6fd1529996 100644
--- a/include/formula/opcode.hxx
+++ b/include/formula/opcode.hxx
@@ -440,6 +440,7 @@ enum OpCodeEnum
// internal stuff
ocInternalBegin = SC_OPCODE_INTERNAL_BEGIN,
ocTTT = SC_OPCODE_TTT,
+ ocDebugVar = SC_OPCODE_DEBUG_VAR,
ocInternalEnd = SC_OPCODE_INTERNAL_END,
// from here on ExtraData
ocDataToken1 = SC_OPCODE_DATA_TOKEN_1,