coroutines: add missing ? from previous commit

This commit is contained in:
Joe Conigliaro 2023-10-27 20:16:33 +11:00
parent 77d45b1798
commit f74719d692
No known key found for this signature in database
GPG key ID: C12F7136C08206F1

View file

@ -25,7 +25,7 @@ fn init() {
alloc := fn (_ voidptr, stack_size int) voidptr {
unsafe {
stack_ptr := malloc(stack_size)
$if gcboehm {
$if gcboehm ? {
C.GC_add_roots(stack_ptr, charptr(stack_ptr) + stack_size)
}
return stack_ptr
@ -33,7 +33,7 @@ fn init() {
}
dealloc := fn (_ voidptr, stack_ptr voidptr, stack_size int) {
unsafe {
$if gcboehm {
$if gcboehm ? {
C.GC_remove_roots(stack_ptr, charptr(stack_ptr) + stack_size)
}
free(stack_ptr)