| author | |
| committer | |
| log | d1f99eabb745a3026b4bf0486ee542d38facee8b |
| tree | 2370c1c891ca38d85f111c7b0390952739daed29 |
| parent | c6844072ce440f581787bf97909261084a9edc6c |
1 files changed, 2 insertions(+), 0 deletions(-)
lib/std/log.zig+2| ... | ... | @@ -142,6 +142,8 @@ fn log( |
| 142 | 142 | |
| 143 | 143 | if (@enumToInt(message_level) <= @enumToInt(effective_log_level)) { |
| 144 | 144 | if (@hasDecl(root, "log")) { |
| 145 | if (@typeInfo(@TypeOf(root.log)) != .Fn) | |
| 146 | @compileError("Expected root.log to be a function"); | |
| 145 | 147 | root.log(message_level, scope, format, args); |
| 146 | 148 | } else if (std.Target.current.os.tag == .freestanding) { |
| 147 | 149 | // On freestanding one must provide a log function; we do not have |