MCPcopy Create free account
hub / github.com/SFML/SFML / overflow

Method overflow

src/SFML/System/Android/Activity.cpp:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_INFO, "sfml-error", __VA_ARGS__))
37
38std::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
52namespace sf::priv
53{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected