Module: Fiddle::BasicTypes

Defined in:
lib/fiddle/types.rb

Overview

Adds basic type aliases to the including class for use with Fiddle::Importer.

The aliases added are uint and u_int (unsigned int) and ulong and u_long (unsigned long)

Class Method Summary collapse

Class Method Details

.included(m) ⇒ Object

:nodoc:



62
63
64
65
66
67
68
69
# File 'lib/fiddle/types.rb', line 62

def included(m) # :nodoc:
  m.module_eval{
    typealias "uint", "unsigned int"
    typealias "u_int", "unsigned int"
    typealias "ulong", "unsigned long"
    typealias "u_long", "unsigned long"
  }
end