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:
parent
bae19b5547
commit
3be4550558
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue