From a29fc42602741605fdfc47c8ff8f560b47f65040 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 30 Jan 2013 16:32:25 +0000 Subject: [PATCH] Throw an exception when we cannot marshal an argument. --- src/Generator/Generators/CLI/CLISourcesTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CLI/CLISourcesTemplate.cs b/src/Generator/Generators/CLI/CLISourcesTemplate.cs index 9ed16126..73442dbe 100644 --- a/src/Generator/Generators/CLI/CLISourcesTemplate.cs +++ b/src/Generator/Generators/CLI/CLISourcesTemplate.cs @@ -297,7 +297,7 @@ namespace Cxxi.Generators.CLI param.Visit(marshal); if (string.IsNullOrEmpty(marshal.Return)) - return null; + throw new Exception("Cannot marshal argument of function"); if (!string.IsNullOrWhiteSpace(marshal.SupportBefore)) WriteLine(marshal.SupportBefore);