Module: DL::BasicTypes

Defined in:
lib/dl/types.rb

Overview

Adds basic type aliases to the including class for use with DL::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:


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

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