3 #include <ivorium_config.hpp>
5 #if IV_ENABLE_ANDROID_JNI
6 #include <android/log.h>
20 if( value == traits_type::eof() )
22 this->flush_as_line();
26 auto c = traits_type::to_char_type( value );
28 this->flush_as_line();
30 this->buffer.push_back( c );
33 return traits_type::not_eof( value );
36 void TextOutput_streambuf::flush_as_line()
40 std::cout << this->buffer << std::endl;
43 #if IV_ENABLE_ANDROID_JNI
44 __android_log_write( ANDROID_LOG_INFO,
"ivorium", this->buffer.c_str() );