MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / enum_has_value

Function enum_has_value

modules/gdscript/gdscript_analyzer.cpp:2717–2724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2715
2716#ifdef DEBUG_ENABLED
2717static bool enum_has_value(const GDScriptParser::DataType p_type, int64_t p_value) {
2718 for (const KeyValue<StringName, int64_t> &E : p_type.enum_values) {
2719 if (E.value == p_value) {
2720 return true;
2721 }
2722 }
2723 return false;
2724}
2725#endif // DEBUG_ENABLED
2726
2727void GDScriptAnalyzer::update_const_expression_builtin_type(GDScriptParser::ExpressionNode *p_expression, const GDScriptParser::DataType &p_type, const char *p_usage, bool p_is_cast) {

Calls

no outgoing calls

Tested by

no test coverage detected