mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Comptime math and bug fixes
This commit is contained in:
parent
621fe99882
commit
61f54a4f88
14 changed files with 684 additions and 122 deletions
|
@ -2673,6 +2673,15 @@ void BeIRCodeGen::HandleNextCmd()
|
|||
SetResult(curId, mBeModule->GetInsertBlock());
|
||||
}
|
||||
break;
|
||||
case BfIRCmd_Comptime_Error:
|
||||
{
|
||||
CMD_PARAM(int32, error);
|
||||
|
||||
auto inst = mBeModule->AllocInst<BeComptimeError>();
|
||||
inst->mError = error;
|
||||
SetResult(curId, inst);
|
||||
}
|
||||
break;
|
||||
case BfIRCmd_Comptime_GetBfType:
|
||||
{
|
||||
CMD_PARAM(int32, typeId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue