Changeset 835
- Timestamp:
- 12/05/18 21:02:00 (6 years ago)
- Location:
- cpp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/PrintFloat/Dragon4.h
r823 r835 56 56 tU32 Dragon4 57 57 ( 58 59 60 61 62 tCutoffMode cutoffMode, // how to determine output length58 const tU64 mantissa, // value significand 59 const tS32 exponent, // value exponent in base 2 60 const tU32 mantissaHighBitIdx, // index of the highest set mantissa bit 61 const tB hasUnequalMargins, // is the high margin twice as large as the low margin 62 const tCutoffMode cutoffMode, // how to determine output length 63 63 tU32 cutoffNumber, // parameter to the selected cutoffMode 64 64 tC8 * pOutBuffer, // buffer to output into -
cpp/common/nonstd_math.cpp
r492 r835 13 13 14 14 15 16 #if (defined __BORLANDC__ || (_MSC_VER <= 1700)) & (!defined EMSCRIPTEN)17 double round(double val) //http://stackoverflow.com/questions/2170385/c-math-functions18 {19 return floor(val + 0.5);20 }21 #endif22 15 23 16 -
cpp/common/nonstd_math.h
r665 r835 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2018 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 17 17 #endif 18 18 19 #if (defined __BORLANDC__ || (_MSC_VER <= 1700)) & (!defined EMSCRIPTEN)20 double round(double val); //http://stackoverflow.com/questions/2170385/c-math-functions21 #endif22 19 23 20 … … 70 67 71 68 #endif 69 -
cpp/frams/genetics/fH/fH_general.cpp
r821 r835 417 417 if (sticks.size() == 1) 418 418 { 419 stickconnections.push_back(pair<fH_StickHandle *, fH_StickHandle *>( NULL, sticks[0]));419 stickconnections.push_back(pair<fH_StickHandle *, fH_StickHandle *>(nullptr, sticks[0])); 420 420 sticksorder.push_back(0); 421 421 return; … … 457 457 458 458 // two found handles are the beginning of creature body 459 stickconnections.push_back(pair<fH_StickHandle *, fH_StickHandle *>( NULL, left));459 stickconnections.push_back(pair<fH_StickHandle *, fH_StickHandle *>(nullptr, left)); 460 460 stickconnections.push_back(pair<fH_StickHandle *, fH_StickHandle *>(left, right)); 461 461
Note: See TracChangeset
for help on using the changeset viewer.