Browse Source

Fix SDL_PollEvent generation in the SDL example.

Fixes https://github.com/mono/CppSharp/issues/978.

Thanks to @Saalvage.
pull/1776/head
Joao Matos 2 years ago
parent
commit
d7faf5f063
  1. 2
      examples/SDL/SDL.cs

2
examples/SDL/SDL.cs

@ -53,6 +53,8 @@ namespace CppSharp @@ -53,6 +53,8 @@ namespace CppSharp
ctx.IgnoreEnumWithMatchingItem("SDL_ENOMEM");
ctx.IgnoreFunctionWithName("SDL_Error");
ctx.SetFunctionParameterUsage("SDL_PollEvent", 1, ParameterUsage.Out);
}
public void Postprocess(Driver driver, ASTContext ctx)

Loading…
Cancel
Save