Log(const char* f, int l, bool w = false) { if(w) { std::cerr<<"WARN "; } std::cerr<<shortenString(f)<<':'<<l<<' '; debug()<<QString::fromStdString(shortenString(f))<<':'<<l<<' '; }
void MidiPlayer::addSoundFont(const QString &filename) { // verify filename before adding // add the real path to a private list // add just the name to the list (and use the index to get the real name later) qDebug() << filename; QString name = shortenString(filename); qDebug() << name; midi_filenames.push_back(filename); }
void llvmDumpImpl(T t, int line, const char* file) { format(std::cout, "%s:%u ", shortenString(file), line); llvm::raw_os_ostream sstream(std::cout); sstream<<(*t); std::cout<<std::endl; }
explicit Log(const char* f, int l, bool w = false) { fn = shortenString(f); line = l; warn = w; }