Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions source/MetadataProcessor.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ public void GenerateSkeleton(
string file,
string name,
string project,
bool interopCode)
bool withoutInteropCode)
{
try
{
if (interopCode)
if (!withoutInteropCode)
{
System.Console.Error.WriteLine("Generator for Interop stubs is not supported yet.");

Expand All @@ -115,7 +115,7 @@ public void GenerateSkeleton(
file,
name,
project,
interopCode);
withoutInteropCode);

skeletonGenerator.GenerateSkeleton();
}
Expand Down Expand Up @@ -220,9 +220,9 @@ public static void Main(string[] args)
string file = args[i + 1];
string name = args[i + 2];
string project = args[i + 3];
bool interopCode = false;
bool withoutInteropCode = false;

if (!bool.TryParse(args[i + 4], out interopCode))
if (!bool.TryParse(args[i + 4], out withoutInteropCode))
{
System.Console.Error.WriteLine("Bad parameter for generateSkeleton. Generate code without Interop support has to be 'true' or 'false'.");

Expand All @@ -233,7 +233,7 @@ public static void Main(string[] args)
file,
name,
project,
interopCode);
withoutInteropCode);

i += 4;
}
Expand Down
6 changes: 3 additions & 3 deletions source/MetadataProcessor.Core/nanoSkeletonGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public sealed class nanoSkeletonGenerator
private readonly string _path;
private readonly string _name;
private readonly string _project;
private readonly bool _interopCode;
private readonly bool _withoutInteropCode;

private string _assemblyName;

Expand All @@ -31,13 +31,13 @@ public nanoSkeletonGenerator(
string path,
string name,
string project,
bool interopCode)
bool withoutInteropCode)
{
_tablesContext = tablesContext;
_path = path;
_name = name;
_project = project;
_interopCode = interopCode;
_withoutInteropCode = withoutInteropCode;
}

public void GenerateSkeleton()
Expand Down