Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
MakeMakefile#log_src
log_src(src, heading="checked program was")
lib/mkmf.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/mkmf.rb, line 472
def log_src(src, heading="checked program was")
src = src.split(/^/)
fmt = "%#{src.size.to_s.size}d: %s"
Logging::message <<"EOM"
#{heading}:
/* begin */
EOM
src.each_with_index {|line, no| Logging::message fmt, no+1, line}
Logging::message <<"EOM"
/* end */
EOM
end
Logs src