6 lines
196 B
Zig
6 lines
196 B
Zig
pub fn print(s: anytype) void {
|
|
const ur = [2]type{comptime_int, comptime_float};
|
|
@import("std").debug.
|
|
print(if (@TypeOf(s) == ur[if (@TypeOf(s) == ur[0]) 0 else 1]) "{}" else "{s}", .{s});
|
|
}
|