From 78b82b7ff2e28d53faae176776491404115ce02c Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sun, 16 Aug 2015 22:02:27 +1000 Subject: [PATCH] Add PBD::DEBUG::StringConvert debug bit This is for debugging errors with string conversion for cases where errors aren't handled --- libs/pbd/debug.cc | 1 + libs/pbd/pbd/debug.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/pbd/debug.cc b/libs/pbd/debug.cc index 419c5bfb37..049ac9efa7 100644 --- a/libs/pbd/debug.cc +++ b/libs/pbd/debug.cc @@ -57,6 +57,7 @@ DebugBits PBD::DEBUG::UndoHistory = PBD::new_debug_bit ("undohistory"); DebugBits PBD::DEBUG::Timing = PBD::new_debug_bit ("timing"); DebugBits PBD::DEBUG::Threads = PBD::new_debug_bit ("threads"); DebugBits PBD::DEBUG::Locale = PBD::new_debug_bit ("locale"); +DebugBits PBD::DEBUG::StringConvert = PBD::new_debug_bit ("stringconvert"); /* These are debug bits that are used by backends. Since these are loaded dynamically, after command-line parsing, defining them in code that is part of the backend diff --git a/libs/pbd/pbd/debug.h b/libs/pbd/pbd/debug.h index 8db198e82e..ddb41675f7 100644 --- a/libs/pbd/pbd/debug.h +++ b/libs/pbd/pbd/debug.h @@ -59,6 +59,7 @@ namespace PBD { LIBPBD_API extern DebugBits Timing; LIBPBD_API extern DebugBits Threads; LIBPBD_API extern DebugBits Locale; + LIBPBD_API extern DebugBits StringConvert; /* See notes in ../debug.cc on why these are defined here */