1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
nobu 2018-04-02 12:39:01 +00:00
parent bae19b5547
commit 3be4550558

View file

@ -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'