Sha256: 5d92752cf4cfd1d62de209b4641fa591cd2722046ee8eb5bf1bf67b6794263d7

Contents?: true

Size: 290 Bytes

Versions: 3

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

require 'ffi'

# @api private
module RbBug
  extend FFI::Library
  ffi_lib 'ruby'
  attach_function :rb_bug, %i[string varargs], :void

  # Call the test bug
  #
  # @return [undefined]
  def self.call
    rb_bug('%s', :string, 'test bug')
  end

end # RbBug

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mutant-0.8.19 spec/support/rb_bug.rb
mutant-0.8.18 spec/support/rb_bug.rb
mutant-0.8.17 spec/support/rb_bug.rb