| 36 | #define LOGE(...) ((void)__android_log_print(ANDROID_LOG_INFO, "sfml-error", __VA_ARGS__)) |
| 37 | |
| 38 | std::streambuf::int_type LogcatStream::overflow(std::streambuf::int_type c) |
| 39 | { |
| 40 | if (c == '\n') |
| 41 | { |
| 42 | m_message.push_back(static_cast<char>(c)); |
| 43 | LOGE("%s", m_message.c_str()); |
| 44 | m_message.clear(); |
| 45 | } |
| 46 | |
| 47 | m_message.push_back(static_cast<char>(c)); |
| 48 | |
| 49 | return traits_type::not_eof(c); |
| 50 | } |
| 51 | |
| 52 | namespace sf::priv |
| 53 | { |