From 1f35639ff248edac44ac065ec575d1552d66296e Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 17 Jul 2013 21:07:25 +0100 Subject: [PATCH] Update the SDL example. --- examples/SDL/SDL.cs | 9 +++------ examples/SDL/premake4.lua | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/SDL/SDL.cs b/examples/SDL/SDL.cs index d0274a49..9b9f85d5 100644 --- a/examples/SDL/SDL.cs +++ b/examples/SDL/SDL.cs @@ -1,11 +1,8 @@ -using CppSharp.Generators; +using CppSharp.AST; using CppSharp.Passes; namespace CppSharp { - /// - /// Transform the SDL library declarations to something more .NET friendly. - /// class SDL : ILibrary { public void Setup(Driver driver) @@ -47,7 +44,7 @@ namespace CppSharp 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"); @@ -64,7 +61,7 @@ namespace CppSharp 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 diff --git a/examples/SDL/premake4.lua b/examples/SDL/premake4.lua index 98d87900..76497855 100644 --- a/examples/SDL/premake4.lua +++ b/examples/SDL/premake4.lua @@ -7,7 +7,7 @@ project "SDL" files { "**.cs", "./*.lua" } - links { "Bridge", "Generator" } + links { "CppSharp.AST", "CppSharp.Generator" } project "SDL.Tests"