Force log output to be flushed.

master
Pacman Ghost 7 years ago
parent 6e06a438f7
commit f29a64fc94
  1. 4
      MouseDll/globals.hpp

@ -44,8 +44,12 @@ extern PCALLBACKFN gpCallbackFn ;
{ \
string _buf_ = makeLogMsg( MAKE_STRING( msg ) ) ; \
cout << _buf_ ; \
cout.flush() ; \
if ( gLogFile.is_open() ) \
{ \
gLogFile << _buf_ ; \
gLogFile.flush() ; \
} \
}
#define LOG_CMSG( c , msg ) \
{ \

Loading…
Cancel
Save