the NULL->nullptr changes for lib/awpmd. Then, hand-applied a minor cleanup to comments, ala Axel's changes to the rest of the codebase.
26 lines
502 B
C++
26 lines
502 B
C++
//# ifdef USE_STDAFX
|
|
//# include "stdafx.h"
|
|
//# endif
|
|
|
|
# include "logexc.h"
|
|
|
|
message_logger std_log;
|
|
|
|
message_logger &message_logger::global(){
|
|
if(!glogp){
|
|
std_log.set_global(true);
|
|
}
|
|
return *glogp;
|
|
}
|
|
|
|
message_logger *message_logger::glogp=nullptr;
|
|
stdfile_logger default_log("",0,stdout,stderr,vblALLBAD|vblMESS1,vblFATAL,1);
|
|
|
|
const char *logfmt(const char *format,...){
|
|
va_list args;
|
|
va_start(args,format);
|
|
static char buff[1024];
|
|
vsnprintf(buff,1024,format,args);
|
|
return buff;
|
|
}
|