Skip to content

Commit

Permalink
[io] Flush modm::endl on hosted platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Nov 23, 2024
1 parent cbfaaba commit 73159ca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/modm/io/iostream.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,16 @@ inline IOStream&
flush(IOStream& ios)
{ return ios.flush(); }

//// Write a newline. **DOES NOT FLUSH THE STREAM!**
/// Write a newline. **DOES NOT FLUSH THE STREAM!**
inline IOStream&
endl(IOStream& ios)
{ return ios.endl(); }
{
ios.endl();
#ifdef MODM_OS_HOSTED
ios.flush();
#endif
return ios;
}

/// set the output mode to binary style
inline IOStream&
Expand Down

0 comments on commit 73159ca

Please sign in to comment.