- Timestamp:
- Jul 9, 2020, 8:51:43 AM (4 years ago)
- Location:
- EcnlProtoTool/trunk/mruby-2.1.1
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/mruby-2.1.1/mrbgems/mruby-print/mrblib/print.rb
r321 r439 46 46 i += 1 47 47 end 48 args [0]48 args.__svalue 49 49 end 50 50 51 unless Kernel.respond_to?(:sprintf) 52 def printf(*args) 53 raise NotImplementedError.new('printf not available') 54 end 55 def sprintf(*args) 56 raise NotImplementedError.new('sprintf not available') 57 end 58 else 59 def printf(*args) 60 __printstr__(sprintf(*args)) 61 nil 62 end 51 def printf(*args) 52 __printstr__(sprintf(*args)) 53 nil 63 54 end 64 55 end
Note:
See TracChangeset
for help on using the changeset viewer.