dont use NULL macro

This commit is contained in:
IlyaShurupov 2024-03-23 12:16:44 +03:00
parent 9a9262f6d0
commit 4c66704830
16 changed files with 52 additions and 52 deletions

View file

@ -62,13 +62,13 @@ void FunctionDefinition::EvalStatement(Statement* stm) {
EvalExpr(stm_while->mCondition);
auto jump_if_inst = inst(Instruction(NULL, Instruction::InstType::JUMP_IF_NOT));
auto jump_if_inst = inst(Instruction(nullptr, Instruction::InstType::JUMP_IF_NOT));
if (stm_while->mScope) {
EvalStatement(stm_while->mScope);
}
auto jump_inst = inst(Instruction(NULL, Instruction::InstType::JUMP));
auto jump_inst = inst(Instruction(nullptr, Instruction::InstType::JUMP));
auto end_mark = inst(Instruction());
jump_if_inst->data.mInstTarget = &end_mark->data;
@ -82,13 +82,13 @@ void FunctionDefinition::EvalStatement(Statement* stm) {
EvalExpr(stm_if->mCondition);
auto jump_if_inst = inst(Instruction(NULL, Instruction::InstType::JUMP_IF_NOT));
auto jump_if_inst = inst(Instruction(nullptr, Instruction::InstType::JUMP_IF_NOT));
if (stm_if->mOnTrue) {
EvalStatement(stm_if->mOnTrue);
}
auto jump_inst = inst(Instruction(NULL, Instruction::InstType::JUMP));
auto jump_inst = inst(Instruction(nullptr, Instruction::InstType::JUMP));
auto else_mark = inst(Instruction());
if (stm_if->mOnFalse) {