Skip to content

Commit 792826d

Browse files
nobuhsbt
authored andcommitted
Make rb_ec_set_vm_stack conformant to the C++11 requirement
Https://learn.microsoft.com/en-us/cpp/build/reference/zc-inline-remove-unreferenced-comdat?view=msvc-140 > If `/Zc:inline` is specified, the compiler enforces the C++11 > requirement that all functions declared inline must have a definition > available in the same translation unit if they're used.
1 parent d44061b commit 792826d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3495,7 +3495,7 @@ thread_alloc(VALUE klass)
34953495
return TypedData_Make_Struct(klass, rb_thread_t, &thread_data_type, th);
34963496
}
34973497

3498-
inline void
3498+
void
34993499
rb_ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size)
35003500
{
35013501
ec->vm_stack = stack;

0 commit comments

Comments
 (0)