ruby-changes:53636
From: nobu <ko1@a...>
Date: Tue, 20 Nov 2018 19:51:31 +0900 (JST)
Subject: [ruby-changes:53636] nobu:r65882 (trunk): Fix condition
nobu 2018-11-20 19:51:27 +0900 (Tue, 20 Nov 2018) New Revision: 65882 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65882 Log: Fix condition FIBER_USE_NATIVE is always defined as 0 or 1, use `#if` instead of `#ifdef`. Modified files: trunk/cont.c Index: cont.c =================================================================== --- cont.c (revision 65881) +++ cont.c (revision 65882) @@ -908,7 +908,7 @@ fiber_machine_stack_alloc(size_t size) https://github.com/ruby/ruby/blob/trunk/cont.c#L908 } #endif -#ifdef FIBER_USE_NATIVE +#if FIBER_USE_NATIVE static void fiber_initialize_machine_stack_context(rb_fiber_t *fib, size_t size) { @@ -999,7 +999,7 @@ fiber_setcontext(rb_fiber_t *newfib, rb_ https://github.com/ruby/ruby/blob/trunk/cont.c#L999 swapcontext(&oldfib->context, &newfib->context); #endif } -#endif /* FIBER_ALLOCATE_STACK */ +#endif /* FIBER_USE_NATIVE */ NOINLINE(NORETURN(static void cont_restore_1(rb_context_t *))); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/