Changes in src/SynTree/Constant.cc [cb4c607:9d7b3ea]
- File:
-
- 1 edited
-
src/SynTree/Constant.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.cc
rcb4c607 r9d7b3ea 30 30 Constant::~Constant() { delete type; } 31 31 32 Constant Constant::from _int( int i ) {32 Constant Constant::from( int i ) { 33 33 return Constant( new BasicType( Type::Qualifiers(), BasicType::SignedInt ), std::to_string( i ) ); 34 34 } 35 35 36 Constant Constant::from _ulong( unsigned long i ) {36 Constant Constant::from( unsigned long i ) { 37 37 return Constant( new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ), std::to_string( i ) ); 38 38 } 39 39 40 Constant Constant::from _double( double d ) {40 Constant Constant::from( double d ) { 41 41 return Constant( new BasicType( Type::Qualifiers(), BasicType::Double ), std::to_string( d ) ); 42 42 }
Note:
See TracChangeset
for help on using the changeset viewer.