# File lib/ffi/types.rb, line 32
  def self.add_typedef(current, add)
    if current.kind_of?(FFI::Type)
      code = current
    else
      code = TypeDefs[current]
      raise TypeError, "Unable to resolve type '#{current}'" unless code
    end

    TypeDefs[add] = code
  end