123456789_123456789_123456789_123456789_123456789_

Module: Fiddle::BasicTypes

Relationships & Source Files
Defined in: ext/fiddle/lib/fiddle/types.rb

Overview

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

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

Class Method Summary

Class Method Details

.included(m) (mod_func)

This method is for internal use only.
[ GitHub ]

  
# File 'ext/fiddle/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