Skip to content

Commit

Permalink
fixed debugfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Nov 26, 2024
1 parent 9b2d695 commit 71e8142
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/folia_document.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const char *output_encoding = "UTF-8";
/// direct Debugging info to the internal file, if present,
/// or to the default stream

TiCC::LogStream DBG_CERR(cerr,NoStamp);
#define DBG *TiCC::Log((_dbg_file?_dbg_file:&DBG_CERR))

namespace folia {
Expand Down
2 changes: 1 addition & 1 deletion src/folia_engine.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

using namespace std;

TiCC::LogStream DBG_CERR(cerr);
static TiCC::LogStream DBG_CERR(cerr);
#define DBG *TiCC::Log((_dbg_file?_dbg_file:&DBG_CERR))

namespace folia {
Expand Down
3 changes: 2 additions & 1 deletion src/folia_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ using namespace std;
using namespace icu;
using namespace TiCC;

#define DBG *TiCC::Log(_dbg_file)
static TiCC::LogStream DBG_CERR(cerr,NoStamp);
#define DBG *TiCC::Log((_dbg_file?_dbg_file:&DBG_CERR))

namespace folia {
using TiCC::operator <<;
Expand Down
3 changes: 2 additions & 1 deletion src/folia_subclasses.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ using namespace std;
using namespace icu;
using namespace TiCC;

#define DBG *TiCC::Log(_dbg_file)
static TiCC::LogStream DBG_CERR(cerr,NoStamp);
#define DBG *TiCC::Log((_dbg_file?_dbg_file:&DBG_CERR))

namespace folia {
using TiCC::operator <<;
Expand Down

0 comments on commit 71e8142

Please sign in to comment.