mirror of https://github.com/pfusik/xasm.git
Fix unreachable statement.
This commit is contained in:
parent
7ad066fc6f
commit
2f8e97499d
|
@ -1081,13 +1081,13 @@ File openInputFile(string filename) {
|
||||||
}
|
}
|
||||||
|
|
||||||
File openOutputFile(string filename, string msg) {
|
File openOutputFile(string filename, string msg) {
|
||||||
|
if (!getOption('q'))
|
||||||
|
writeln(msg);
|
||||||
try {
|
try {
|
||||||
return File(filename, "wb");
|
return File(filename, "wb");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new AssemblyError(e.msg);
|
throw new AssemblyError(e.msg);
|
||||||
}
|
}
|
||||||
if (!getOption('q'))
|
|
||||||
writeln(msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ensureListingFileOpen(char letter, string msg) {
|
void ensureListingFileOpen(char letter, string msg) {
|
||||||
|
|
Loading…
Reference in New Issue