MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / safeAdd

Function safeAdd

src/ast/ast_lint.cpp:171–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 static SuperCount dead () { return {false, 0, 0, false, 0, 0}; }
170 };
171 static int safeAdd ( int a, int b ) {
172 if ( a == kSuperUnbounded || b == kSuperUnbounded ) return kSuperUnbounded;
173 return a + b;
174 }
175 static int safeMax ( int a, int b ) {
176 if ( a == kSuperUnbounded || b == kSuperUnbounded ) return kSuperUnbounded;
177 return a > b ? a : b;

Callers 1

countSuperCallsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected