23 lines
426 B
Plaintext
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
|
|
}
|
|
}
|
|
|
|
|