1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 08:30:25 +02:00

Comptime updates, start of metaprogramming support

This commit is contained in:
Brian Fiete 2021-01-08 16:21:03 -08:00
parent be1c099f19
commit 3bbf2d8313
43 changed files with 1562 additions and 885 deletions

View file

@ -40,12 +40,12 @@ namespace System
return false;
}
#endif
extern Type ConstEval_GetType();
extern Type Comptime_GetType();
public Type GetType()
{
if (Compiler.IsConstEval)
return ConstEval_GetType();
if (Compiler.IsComptime)
return Comptime_GetType();
Type type;
#if BF_ENABLE_OBJECT_DEBUG_FLAGS
@ -65,8 +65,8 @@ namespace System
[NoShow]
Type RawGetType()
{
if (Compiler.IsConstEval)
return ConstEval_GetType();
if (Compiler.IsComptime)
return Comptime_GetType();
Type type;
#if BF_ENABLE_OBJECT_DEBUG_FLAGS