Browse Source

Updated examples to work with latest CppSharp.

pull/86/head
triton 12 years ago
parent
commit
047f6dd227
  1. 4
      examples/SDL/SDL.cs

4
examples/SDL/SDL.cs

@ -23,7 +23,7 @@ namespace CppSharp @@ -23,7 +23,7 @@ namespace CppSharp
driver.TranslationUnitPasses.RemovePrefix("LOG_CATEGORY_");
}
public void Preprocess(Driver driver, Library lib)
public void Preprocess(Driver driver, ASTContext lib)
{
lib.IgnoreEnumWithMatchingItem("SDL_FALSE");
lib.IgnoreEnumWithMatchingItem("DUMMY_ENUM_VALUE");
@ -50,7 +50,7 @@ namespace CppSharp @@ -50,7 +50,7 @@ namespace CppSharp
lib.IgnoreFunctionWithName("SDL_Error");
}
public void Postprocess(Library lib)
public void Postprocess(Driver driver, ASTContext lib)
{
lib.SetNameOfEnumWithName("PIXELTYPE", "PixelType");
lib.SetNameOfEnumWithName("BITMAPORDER", "BitmapOrder");

Loading…
Cancel
Save