ableos/sysdata/libraries/stn/src/alloc/fake_alloc.hb
2024-11-24 10:00:24 -06:00

23 lines
426 B
Plaintext

alloc_return := @use("alloc_return.hb")
FakeAlloc := struct {
$init := fn():Self{
return .()
}
$alloc := fn(&self, alloc_type: Type, count: uint): alloc_return.AllocReturn {
return .(0, null)
}
$dealloc := fn(&self, ptr: ^u8, alloc_type: Type, count: uint) : void{
return void
}
// Nothing to clean up here
$deinit := fn(&self): void {
return void
}
}