Skip to content

Commit

Permalink
Fix SDL_PollEvent generation in the SDL example.
Browse files Browse the repository at this point in the history
Fixes #978.

Thanks to @Saalvage.
  • Loading branch information
tritao committed Oct 18, 2023
1 parent 7f567b6 commit d7faf5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/SDL/SDL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public void Preprocess(Driver driver, ASTContext ctx)

ctx.IgnoreEnumWithMatchingItem("SDL_ENOMEM");
ctx.IgnoreFunctionWithName("SDL_Error");

ctx.SetFunctionParameterUsage("SDL_PollEvent", 1, ParameterUsage.Out);
}

public void Postprocess(Driver driver, ASTContext ctx)
Expand Down

0 comments on commit d7faf5f

Please sign in to comment.