forked from AbleOS/ableos
19 lines
388 B
Plaintext
19 lines
388 B
Plaintext
alloc_return := @use("alloc_return.hb")
|
|
|
|
FakeAlloc := struct {
|
|
$init := fn(): Self {
|
|
return .()
|
|
}
|
|
|
|
$alloc := fn(self: Self, alloc_type: type, count: uint): alloc_return.AllocReturn {
|
|
return .(0, null)
|
|
}
|
|
|
|
$dealloc := fn(self: Self, ptr: ^u8, alloc_type: type, count: uint): void {
|
|
return void
|
|
}
|
|
// Nothing to clean up here
|
|
$deinit := fn(self: Self): void {
|
|
return void
|
|
}
|
|
} |