Skip to content

Commit

Permalink
coroutines: add missing ? from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-conigliaro committed Oct 27, 2023
1 parent 77d45b1 commit f74719d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/coroutines/coroutines.v
Expand Up @@ -25,15 +25,15 @@ 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
}
}
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)
Expand Down

0 comments on commit f74719d

Please sign in to comment.