Skip to content

Commit d7faf5f

Browse files
committed
Fix SDL_PollEvent generation in the SDL example.
Fixes mono#978. Thanks to @Saalvage.
1 parent 7f567b6 commit d7faf5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/SDL/SDL.cs

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public void Preprocess(Driver driver, ASTContext ctx)
5353

5454
ctx.IgnoreEnumWithMatchingItem("SDL_ENOMEM");
5555
ctx.IgnoreFunctionWithName("SDL_Error");
56+
57+
ctx.SetFunctionParameterUsage("SDL_PollEvent", 1, ParameterUsage.Out);
5658
}
5759

5860
public void Postprocess(Driver driver, ASTContext ctx)

0 commit comments

Comments
 (0)