diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-12-20 19:57:28 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-12-31 10:42:14 -0500 |
commit | c1ed8bb33219a3c2f6b35e37f56febc022698121 (patch) | |
tree | be53eb3a24bf32c20703b7541fe8df6493f2c1a3 /include/formula | |
parent | d4e8c8101df1c8ea04d5b54dcc618bc528b4c209 (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.
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/compiler.hrc | 5 | ||||
-rw-r--r-- | include/formula/opcode.hxx | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/formula/compiler.hrc b/include/formula/compiler.hrc index 9bda945bae51..e11f82594729 100644 --- a/include/formula/compiler.hrc +++ b/include/formula/compiler.hrc @@ -442,10 +442,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 58f3d4188ba5..c86b3a396123 100644 --- a/include/formula/opcode.hxx +++ b/include/formula/opcode.hxx @@ -432,6 +432,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, |