mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
coroutines: add missing ? from previous commit
This commit is contained in:
parent
77d45b1798
commit
f74719d692
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue