Files
lammps/lib/awpmd/ivutils/src/logexc.cpp
Anne Gunn 6315b277c8 Revert commit 14dfd3876a which walked-back
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.
2020-09-14 12:05:46 -06:00

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;
}