Browse Source

Throw an exception when we cannot marshal an argument.

pull/1/head
triton 13 years ago
parent
commit
a29fc42602
  1. 2
      src/Generator/Generators/CLI/CLISourcesTemplate.cs

2
src/Generator/Generators/CLI/CLISourcesTemplate.cs

@ -297,7 +297,7 @@ namespace Cxxi.Generators.CLI
param.Visit(marshal); param.Visit(marshal);
if (string.IsNullOrEmpty(marshal.Return)) if (string.IsNullOrEmpty(marshal.Return))
return null; throw new Exception("Cannot marshal argument of function");
if (!string.IsNullOrWhiteSpace(marshal.SupportBefore)) if (!string.IsNullOrWhiteSpace(marshal.SupportBefore))
WriteLine(marshal.SupportBefore); WriteLine(marshal.SupportBefore);

Loading…
Cancel
Save