Class: AdLint::Cc1::UnsignedShortTypeId

Inherits:
StandardTypeId show all
Defined in:
lib/adlint/cc1/type.rb

Instance Method Summary collapse

Methods inherited from TypeId

#eql?, #hash

Constructor Details

#initializeUnsignedShortTypeId

Returns a new instance of UnsignedShortTypeId.



3932
3933
3934
# File 'lib/adlint/cc1/type.rb', line 3932

def initialize
  super("unsigned short")
end

Instance Method Details

#==(rhs_id) ⇒ Object



3936
3937
3938
3939
3940
3941
3942
3943
# File 'lib/adlint/cc1/type.rb', line 3936

def ==(rhs_id)
  case rhs_id
  when UnsignedShortTypeId, UnsignedShortIntTypeId
    true
  else
    false
  end
end