Skip to content

Commit

Permalink
Update the SDL example.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Jul 17, 2013
1 parent 443e2a2 commit 1f35639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions examples/SDL/SDL.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using CppSharp.Generators;
using CppSharp.AST;
using CppSharp.Passes;

namespace CppSharp
{
/// <summary>
/// Transform the SDL library declarations to something more .NET friendly.
/// </summary>
class SDL : ILibrary
{
public void Setup(Driver driver)
Expand Down Expand Up @@ -47,7 +44,7 @@ public void Preprocess(Driver driver, Library lib)
lib.IgnoreHeadersWithName("SDL_main*");
lib.IgnoreHeadersWithName("SDL_mutex*");
lib.IgnoreHeadersWithName("SDL_stdinc*");
//lib.IgnoreModuleWithName("SDL_error");
lib.IgnoreHeadersWithName("SDL_error");

lib.IgnoreEnumWithMatchingItem("SDL_ENOMEM");
lib.IgnoreFunctionWithName("SDL_Error");
Expand All @@ -64,7 +61,7 @@ public void Postprocess(Library lib)
lib.SetNameOfEnumWithName("assert_state", "AssertState");
lib.SetClassBindName("assert_data", "AssertData");
lib.SetNameOfEnumWithName("eventaction", "EventAction");
//lib.SetNameOfEnumWithName("LOG_CATEGORY", "LogCategory");
lib.SetNameOfEnumWithName("LOG_CATEGORY", "LogCategory");
}

static class Program
Expand Down
2 changes: 1 addition & 1 deletion examples/SDL/premake4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ project "SDL"

files { "**.cs", "./*.lua" }

links { "Bridge", "Generator" }
links { "CppSharp.AST", "CppSharp.Generator" }


project "SDL.Tests"
Expand Down

0 comments on commit 1f35639

Please sign in to comment.