Skip to content

Commit

Permalink
Also not call log from stringstream overload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ybalrid committed Jul 26, 2018
1 parent 202c88e commit 23ffcd3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Ogre_glTF_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ void OgreLog(const std::string& message)
#endif
}

void OgreLog(const std::stringstream& message) { OgreLog(message.str()); }
void OgreLog(const std::stringstream& message)
{
#ifdef _DEBUG
OgreLog(message.str()); //Also prevent codegen for reading the string insdie that stream
#else
#endif
}

0 comments on commit 23ffcd3

Please sign in to comment.