Skip to content

Commit c129e01

Browse files
committed
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 a6fe3fe commit c129e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3583,7 +3583,7 @@ thread_alloc(VALUE klass)
35833583
return TypedData_Make_Struct(klass, rb_thread_t, &thread_data_type, th);
35843584
}
35853585

3586-
inline void
3586+
void
35873587
rb_ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size)
35883588
{
35893589
ec->vm_stack = stack;

0 commit comments

Comments
 (0)