Ejemplo n.º 1
0
	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<<' ';
	}
Ejemplo n.º 2
0
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);
}
Ejemplo n.º 3
0
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;
}
Ejemplo n.º 4
0
	explicit Log(const char* f, int l, bool w = false) {
		fn = shortenString(f);
		line = l;
		warn = w;
	}