Use template
This commit is contained in:
@@ -6,9 +6,9 @@ using System.Diagnostics;
|
||||
using Cpp2Beef;
|
||||
using LibClang;
|
||||
|
||||
namespace <ProjectName>.Setup;
|
||||
namespace Glfw.Setup;
|
||||
|
||||
class <ProjectName>Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
||||
class GlfwGenerator : Cpp2BeefGenerator, this(Span<char8*> args)
|
||||
{
|
||||
protected override Span<char8*> Args => args;
|
||||
protected override Flags Flags => .None;
|
||||
@@ -19,7 +19,7 @@ class <ProjectName>Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
||||
using System;
|
||||
using System.Interop;
|
||||
|
||||
namespace <ProjectName>;
|
||||
namespace Glfw;
|
||||
|
||||
|
||||
""");
|
||||
@@ -46,7 +46,7 @@ class Program
|
||||
|
||||
public static int Main(String[] args)
|
||||
{
|
||||
scope <ProjectName>Generator(char8*[?]("--language=c")).Generate(TODO, null);
|
||||
scope GlfwGenerator(char8*[?]("--language=c")).Generate(TODO, null);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user