MCPcopy Create free account
hub / github.com/ZDoom/Raze / MaybeStringCoerce

Function MaybeStringCoerce

source/common/console/c_expr.cpp:384–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382//==========================================================================
383
384void MaybeStringCoerce (FProduction *&prod1, FProduction *&prod2)
385{
386 if (prod1->Type == PROD_String)
387 {
388 if (prod2->Type == PROD_Double)
389 {
390 prod2 = DoubleToString (prod2);
391 }
392 }
393 else if (prod2->Type == PROD_String)
394 {
395 prod1 = DoubleToString (prod1);
396 }
397}
398
399//==========================================================================
400//

Callers 1

ParseExpressionFunction · 0.85

Calls 1

DoubleToStringFunction · 0.85

Tested by

no test coverage detected