From ba03f5492a393c84803fda21eca9ebc3a21e42e6 Mon Sep 17 00:00:00 2001 From: triton Date: Thu, 14 Mar 2013 12:05:00 +0000 Subject: [PATCH] Validate the output namespace option. --- src/Generator/Driver.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Generator/Driver.cs b/src/Generator/Driver.cs index fad98a97..d1f73bb2 100644 --- a/src/Generator/Driver.cs +++ b/src/Generator/Driver.cs @@ -47,6 +47,9 @@ namespace Cxxi { Options.IncludeDirs[i] = Path.GetFullPath(Options.IncludeDirs[i]); } + + if (string.IsNullOrWhiteSpace(Options.OutputNamespace)) + Options.OutputNamespace = Options.LibraryName; } private void OnHeaderParsed(string file, ParserResult result)