mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Added System.Compiler compile-time values
This commit is contained in:
parent
24aaa22f7a
commit
25f44ae133
11 changed files with 294 additions and 75 deletions
29
BeefLibs/corlib/src/Compiler.bf
Normal file
29
BeefLibs/corlib/src/Compiler.bf
Normal file
|
@ -0,0 +1,29 @@
|
|||
namespace System
|
||||
{
|
||||
static class Compiler
|
||||
{
|
||||
[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")]
|
||||
public static extern String[Int32.MaxValue] CallerExpression;
|
||||
|
||||
[LinkName("#TimeLocal")]
|
||||
public static extern String TimeLocal;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue