Skip to content

Commit

Permalink
logging: Do not use iostream under any circumstances
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Jan 10, 2024
1 parent ebdc9df commit cbf8284
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions include/frg/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
#include <frg/macros.hpp>
#include <frg/detection.hpp>

#if __STDC_HOSTED__
# if __has_include(<iostream>)
# include <iostream>
# define FRIGG_HAS_IOSTREAM
# endif
#endif

namespace frg FRG_VISIBILITY {

struct endlog_t { };
Expand Down Expand Up @@ -165,11 +158,7 @@ struct ostream_out {
}

auto &operator<<(endlog_t) {
#ifdef FRIGG_HAS_IOSTREAM
output << std::endl;
#else
output << '\n';
#endif // FRIGG_HAS_IOSTREAM
return *this;
}
};
Expand Down

0 comments on commit cbf8284

Please sign in to comment.