2021-01-09 04:55:37 -08:00
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
class Compiler
|
|
|
|
{
|
2021-12-17 18:05:39 +01:00
|
|
|
public class Generator
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-12-04 17:19:08 -03:00
|
|
|
public static class Options
|
|
|
|
{
|
|
|
|
[LinkName("#AllocStackCount")]
|
|
|
|
public static extern int32 AllocStackCount;
|
|
|
|
}
|
|
|
|
|
2021-01-09 04:55:37 -08:00
|
|
|
[LinkName("#CallerLineNum")]
|
|
|
|
public static extern int CallerLineNum;
|
|
|
|
|
|
|
|
[LinkName("#CallerFilePath")]
|
|
|
|
public static extern String CallerFilePath;
|
|
|
|
|
|
|
|
[LinkName("#CallerFileName")]
|
|
|
|
public static extern String CallerFileName;
|
|
|
|
|
|
|
|
[LinkName("#CallerFileDir")]
|
|
|
|
public static extern String CallerFileDir;
|
|
|
|
|
|
|
|
[LinkName("#CallerMemberName")]
|
|
|
|
public static extern String CallerMemberName;
|
|
|
|
|
|
|
|
[LinkName("#CallerProject")]
|
|
|
|
public static extern String CallerProject;
|
|
|
|
|
|
|
|
[LinkName("#CallerExpression")]
|
2021-11-03 07:07:49 -07:00
|
|
|
public static extern String[0x0FFFFFFF] CallerExpression;
|
2021-01-09 04:55:37 -08:00
|
|
|
|
|
|
|
[LinkName("#ProjectName")]
|
|
|
|
public static extern String ProjectName;
|
|
|
|
|
|
|
|
[LinkName("#ModuleName")]
|
|
|
|
public static extern String ModuleName;
|
|
|
|
|
|
|
|
[LinkName("#TimeLocal")]
|
|
|
|
public static extern String TimeLocal;
|
|
|
|
|
|
|
|
[LinkName("#IsComptime")]
|
|
|
|
public static extern bool IsComptime;
|
|
|
|
|
|
|
|
[LinkName("#IsBuilding")]
|
|
|
|
public static extern bool IsBuilding;
|
|
|
|
|
|
|
|
[LinkName("#IsReified")]
|
|
|
|
public static extern bool IsReified;
|
|
|
|
|
|
|
|
[LinkName("#CompileRev")]
|
|
|
|
public static extern int32 CompileRev;
|
|
|
|
|
|
|
|
[Comptime]
|
|
|
|
public static void Assert(bool cond)
|
|
|
|
{
|
|
|
|
if (!cond)
|
|
|
|
Runtime.FatalError("Assert failed");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|