Improved thread creation on Linux

This commit is contained in:
Eduard Urbach 2025-02-16 11:31:31 +01:00
parent b3fec98baf
commit 0ddaeca844
Signed by: eduard
GPG key ID: 49226B848C78F6C8
5 changed files with 39 additions and 5 deletions

View file

@ -26,6 +26,11 @@ func (f *Function) ExpressionToMemory(node *expression.Expression, memory asm.Me
return types.AnyPointer, nil
}
if name == "_exit" {
f.MemoryLabel(asm.STORE, memory, "_exit")
return types.AnyPointer, nil
}
return nil, errors.New(&errors.UnknownIdentifier{Name: name}, f.File, node.Token.Position)
}