Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
Base
Commits
c35d3662
Commit
c35d3662
authored
Jan 24, 2020
by
Martin Marinov
Browse files
Fix usage of Base::ENDL
parent
a8d36b98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Debug/DebOut.hh
View file @
c35d3662
...
...
@@ -56,17 +56,17 @@ class File;
/*!
Stream is a specialization for the Debug system streaming.
*/
class
BASEDLLEXPORT
Stream
:
public
Base
::
IOutputStream
class
BASEDLLEXPORT
Stream
:
public
::
Base
::
IOutputStream
{
public:
Stream
(
File
&
_file
)
:
file_
(
_file
)
{}
Base
::
IOutputStream
&
print
(
const
int
)
override
;
Base
::
IOutputStream
&
print
(
const
size_t
)
override
;
Base
::
IOutputStream
&
print
(
const
float
)
override
;
Base
::
IOutputStream
&
print
(
const
double
)
override
;
Base
::
IOutputStream
&
print
(
const
char
*
const
)
override
;
Base
::
IOutputStream
&
print
(
const
char
)
override
;
::
Base
::
IOutputStream
&
print
(
const
int
)
override
;
::
Base
::
IOutputStream
&
print
(
const
size_t
)
override
;
::
Base
::
IOutputStream
&
print
(
const
float
)
override
;
::
Base
::
IOutputStream
&
print
(
const
double
)
override
;
::
Base
::
IOutputStream
&
print
(
const
char
*
const
)
override
;
::
Base
::
IOutputStream
&
print
(
const
char
)
override
;
private:
File
&
file_
;
...
...
@@ -156,11 +156,11 @@ std::string to_string(const T& _t)
#define DEB_out(LL, AA) DEB_out_if(true, LL, AA)
#define DEB_out_if(CC, LL, AA) \
DEB_if(CC, LL, deb.stream() << AA << Base::ENDL)
DEB_if(CC, LL, deb.stream() << AA <<
::
Base::ENDL)
#define DEB_line(LL, AA) DEB_line_if(true, LL, AA)
#define DEB_line_if(CC, LL, AA) \
DEB_if(CC, LL, deb.stream() << AA << Base::ENDL)
DEB_if(CC, LL, deb.stream() << AA <<
::
Base::ENDL)
#define DEB_warning(LL, AA) DEB_warning_if(true, LL, AA)
#define DEB_warning_if(CC, LL, AA) \
...
...
Test/Checksum.cc
View file @
c35d3662
...
...
@@ -151,7 +151,7 @@ void Object::add(const Result& _rslt, const String& _data)
if
(
prev_call_stck
!=
call_stck
)
{
test_strm
<<
call_stck
<<
Base
::
L
F
;
test_strm
<<
call_stck
<<
::
Base
::
END
L
;
prev_call_stck
=
call_stck
;
}
#endif//DEB_ON
...
...
@@ -159,9 +159,9 @@ void Object::add(const Result& _rslt, const String& _data)
if
(
!
tag_out
)
{
tag_out
=
true
;
test_strm
<<
REPORT_LEVEL_TAG
<<
LEVEL_TEXT
[
run_lvl
]
<<
Base
::
L
F
;
test_strm
<<
REPORT_LEVEL_TAG
<<
LEVEL_TEXT
[
run_lvl
]
<<
::
Base
::
END
L
;
}
test_strm
<<
_rslt
<<
" "
<<
name
()
<<
": "
<<
_data
<<
Base
::
L
F
;
test_strm
<<
_rslt
<<
" "
<<
name
()
<<
": "
<<
_data
<<
::
Base
::
END
L
;
test_strm
.
stream
().
flush
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment