mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-04 01:49:05 +00:00
Refactored how logging works
Made it central reusable logic. No longer needs to be passed around, opened or closed.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace LX_Build
|
||||
[LibraryImport ("Generator.dll", StringMarshalling = StringMarshalling.Custom,
|
||||
StringMarshallingCustomType = typeof(System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller))]
|
||||
[UnmanagedCallConv(CallConvs = new Type[] { typeof(System.Runtime.CompilerServices.CallConvCdecl) })]
|
||||
public static partial int GenIR(string arg1, string arg2, string? arg3);
|
||||
public static partial int GenIR(string arg1, string arg2);
|
||||
|
||||
// Sets the directory to import the DLLs from //
|
||||
public static void Init()
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace LX_Build
|
||||
LX_API.Init();
|
||||
|
||||
// Generates LLVM IR with the example files //
|
||||
if (LX_API.GenIR("example/main.lx", "example/main.ll", "example/log") != 0)
|
||||
if (LX_API.GenIR("example/main.lx", "example/main.ll") != 0)
|
||||
{
|
||||
// Quits if the IR Generation fails //
|
||||
// The C++ script handles all of the error message outputting //
|
||||
|
||||
Reference in New Issue
Block a user