Module: AdLint::Cc1::ConstantEvaluator

Included in:
ExpressionEvaluator
Defined in:
lib/adlint/cc1/const.rb

Instance Method Summary collapse

Instance Method Details

#eval_constant(const_spec) ⇒ Object

NOTE: Host class of this module must include InterpreterMediator.



40
41
42
43
44
# File 'lib/adlint/cc1/const.rb', line 40

def eval_constant(const_spec)
  eval_as_integer_constant(const_spec.constant.value) or
  eval_as_floating_constant(const_spec.constant.value) or
  eval_as_character_constant(const_spec.constant.value)
end