mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
simpler t_print
This commit is contained in:
+1
-5
@@ -10,11 +10,7 @@ def t_print(*args)
|
||||
len = args.size
|
||||
while i < len
|
||||
str = args[i].to_s
|
||||
begin
|
||||
__printstr__ str
|
||||
rescue NoMethodError
|
||||
__t_printstr__ str rescue print str
|
||||
end
|
||||
__t_printstr__ str
|
||||
i += 1
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user