Implement printing of booleans

This commit is contained in:
Ayke van Laethem
2018-08-22 00:54:39 +02:00
parent a30ffa5c1e
commit 2777f8464e
2 changed files with 10 additions and 1 deletions
+8
View File
@@ -101,3 +101,11 @@ func printptr(ptr uintptr) {
ptr <<= 4
}
}
func printbool(b bool) {
if b {
printstring("true")
} else {
printstring("false")
}
}