Skip to content

Commit

Permalink
Don't crash when using a undefined function name for override.
Browse files Browse the repository at this point in the history
See Also: #45
  • Loading branch information
MikeWey committed Oct 28, 2024
1 parent 441cf5f commit 0984751
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/gtd/GirWrapper.d
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ class GirWrapper
param.direction = GirParamDirection.Out;
break;
case "override":
if ( defReader.value !in currentStruct.functions )
error("Unknown function ", defReader.value, ". Possible values: ", currentStruct.functions.keys, defReader);
currentStruct.functions[defReader.value].lookupOverride = true;
break;
case "inout":
Expand Down

0 comments on commit 0984751

Please sign in to comment.