Browse Source

Mark log write functions as inline

master
Riyyi 4 years ago
parent
commit
35f5e9d0c4
  1. 6
      inferno/src/inferno/log.h

6
inferno/src/inferno/log.h

@ -30,7 +30,7 @@ namespace Inferno {
// ---------------------------------------- // ----------------------------------------
class DebugLogStream final : public LogStream{ class DebugLogStream final : public LogStream {
public: public:
DebugLogStream(): DebugLogStream():
m_newline(true), m_type(Log::None) {} m_newline(true), m_type(Log::None) {}
@ -44,14 +44,14 @@ namespace Inferno {
void color() const; void color() const;
virtual void write(const char* characters, int length) const override inline virtual void write(const char* characters, int length) const override
{ {
for (int i = 0; i < length; i++) { for (int i = 0; i < length; i++) {
printf("%c", characters[i]); printf("%c", characters[i]);
} }
} }
virtual void write(const unsigned char* characters, int length) const override inline virtual void write(const unsigned char* characters, int length) const override
{ {
for (int i = 0; i < length; i++) { for (int i = 0; i < length; i++) {
printf("%c", characters[i]); printf("%c", characters[i]);

Loading…
Cancel
Save