Ignore:
Timestamp:
Jul 9, 2020, 8:51:43 AM (4 years ago)
Author:
coas-nagasima
Message:

mrubyを2.1.1に更新

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  
    4646      i += 1
    4747    end
    48     args[0]
     48    args.__svalue
    4949  end
    5050
    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
    6354  end
    6455end
Note: See TracChangeset for help on using the changeset viewer.