Win32API.rb: use uplevel option to warn
Also warns always regardless $VERBOSE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bae19b5547
commit
3be4550558
@ -2,7 +2,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# for backward compatibility
|
||||
warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead" if $VERBOSE
|
||||
warn "Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead", uplevel: 2
|
||||
|
||||
require 'fiddle/import'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user