mirror of
https://github.com/KarolS/millfork.git
synced 2025-08-15 04:27:21 +00:00
Cosmetic fixes for messages
This commit is contained in:
@@ -59,7 +59,7 @@ object ReturnDispatch {
|
|||||||
var default = Option.empty[(Constant, List[Constant])]
|
var default = Option.empty[(Constant, List[Constant])]
|
||||||
stmt.branches.foreach { branch =>
|
stmt.branches.foreach { branch =>
|
||||||
val function = ctx.env.evalForAsm(branch.function).getOrElse {
|
val function = ctx.env.evalForAsm(branch.function).getOrElse {
|
||||||
ErrorReporting.error("Non-constant function address for dispatch branch", branch.function.position)
|
ErrorReporting.error("Undefined function or Non-constant function address for dispatch branch", branch.function.position)
|
||||||
Constant.Zero
|
Constant.Zero
|
||||||
}
|
}
|
||||||
if (returnType.name != "void") {
|
if (returnType.name != "void") {
|
||||||
|
@@ -13,7 +13,7 @@ object ErrorReporting {
|
|||||||
|
|
||||||
def info(msg: String, position: Option[Position] = None): Unit = {
|
def info(msg: String, position: Option[Position] = None): Unit = {
|
||||||
if (verbosity < 0) return
|
if (verbosity < 0) return
|
||||||
println("INFO: " + f(position) + msg)
|
println("INFO: " + f(position) + msg)
|
||||||
flushOutput()
|
flushOutput()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user