Changes in src/SynTree/Constant.cc [a2dbad10:e3e16bc]
- File:
-
- 1 edited
-
src/SynTree/Constant.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.cc
ra2dbad10 re3e16bc 32 32 Constant Constant::from_bool( bool b ) { 33 33 return Constant( new BasicType( Type::Qualifiers(), BasicType::Bool ), b ? "1" : "0" , (unsigned long long int)b ); 34 }35 36 Constant Constant::from_char( char c ) {37 return Constant( new BasicType( Type::Qualifiers(), BasicType::Char ), std::to_string( c ), (unsigned long long int)c );38 34 } 39 35
Note:
See TracChangeset
for help on using the changeset viewer.