Changes in src/SynTree/Constant.cc [9d7b3ea:cb4c607]
- File:
-
- 1 edited
-
src/SynTree/Constant.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.cc
r9d7b3ea rcb4c607 30 30 Constant::~Constant() { delete type; } 31 31 32 Constant Constant::from ( int i ) {32 Constant Constant::from_int( int i ) { 33 33 return Constant( new BasicType( Type::Qualifiers(), BasicType::SignedInt ), std::to_string( i ) ); 34 34 } 35 35 36 Constant Constant::from ( unsigned long i ) {36 Constant Constant::from_ulong( 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 d ) {40 Constant Constant::from_double( 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.