diff options
Diffstat (limited to 'include/basic/sbdef.hxx')
-rw-r--r-- | include/basic/sbdef.hxx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/basic/sbdef.hxx b/include/basic/sbdef.hxx index fa20115b9753..39576fbe7f87 100644 --- a/include/basic/sbdef.hxx +++ b/include/basic/sbdef.hxx @@ -23,6 +23,7 @@ #include <basic/sbxdef.hxx> #include <rtl/ustring.hxx> #include <basic/basicdllapi.h> +#include <o3tl/typed_flags_set.hxx> // Returns type name for Basic type, array flag is ignored // implementation: basic/source/runtime/methods.cxx @@ -39,11 +40,17 @@ BASIC_DLLPUBLIC OUString getBasicObjectTypeName( SbxObject* pObj ); BASIC_DLLPUBLIC void setBasicWatchMode( bool bOn ); // Debug Flags: -#define SbDEBUG_BREAK 0x0001 // Break-Callback -#define SbDEBUG_STEPINTO 0x0002 // Single Step-Callback -#define SbDEBUG_STEPOVER 0x0004 // Additional flag Step Over -#define SbDEBUG_CONTINUE 0x0008 // Do not change flags -#define SbDEBUG_STEPOUT 0x0010 // Leave Sub +enum class BasicDebugFlags { + NONE = 0x0000, + Break = 0x0001, // Break-Callback + StepInto = 0x0002, // Single Step-Callback + StepOver = 0x0004, // Additional flag Step Over + Continue = 0x0008, // Do not change flags + StepOut = 0x0010, // Leave Sub +}; +namespace o3tl { + template<> struct typed_flags<BasicDebugFlags> : is_typed_flags<BasicDebugFlags, 0x001f> {}; +} #define SBXID_BASIC 0x6273 // sb: StarBASIC #define SBXID_BASICMOD 0x6d62 // bm: StarBASIC Module |