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

Function isZeroConst

src/ast/ast_match.cpp:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 bool isZeroConst ( ExpressionPtr expr ) {
27 return isFloatConst(expr, 0.0f) || isIntOrUIntConst(expr, 0) || isPtrZero(expr);
28 }
29
30 bool isPtrZero ( ExpressionPtr expr ) {
31 if ( !expr->rtti_isConstant() ) return false;

Callers 1

matchEquNequZeroFunction · 0.85

Calls 3

isFloatConstFunction · 0.85
isIntOrUIntConstFunction · 0.85
isPtrZeroFunction · 0.85

Tested by

no test coverage detected