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

Function isExpressionNull

src/ast/ast_generate.cpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 bool isExpressionNull(ExpressionPtr expr) {
32 if (expr->rtti_isConstant() && expr->type->isPointer()) {
33 auto cptr = static_cast<ExprConstPtr*>(expr);
34 return cptr->getValue() == nullptr;
35 }
36 return false;
37 }
38
39#define VERIFY_GENERATED 0
40#define LOG_GENERATED 0

Callers

nothing calls this directly

Calls 2

isPointerMethod · 0.80
getValueMethod · 0.80

Tested by

no test coverage detected