File: debug_inspector.rb

package info (click to toggle)
ruby-debug-inspector 1.1.0%2Bgh-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 144 kB
  • sloc: ansic: 90; ruby: 68; sh: 4; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 649 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'rbconfig'
dlext = RbConfig::CONFIG['DLEXT']
begin
  # If the installation task did its job, the extension is in lib/ next to this file.
  require "debug_inspector.#{dlext}"
  # We only want to define constants if the extension has loaded.
  require_relative "rubyvm/debug_inspector/version"
rescue LoadError
  begin
    # If not, maybe the extension is in ext/
    require_relative "../ext/debug_inspector/debug_inspector.#{dlext}"
    # We only want to define constants if the extension has loaded.
    require_relative "rubyvm/debug_inspector/version"
  rescue LoadError => e
    puts "debug_inspector extension was not loaded"
  end
end