mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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.
This commit is contained in:
parent
b34e440d3e
commit
0c40fe8aae
1 changed files with 1 additions and 1 deletions
2
vm.c
2
vm.c
|
@ -3070,7 +3070,7 @@ thread_alloc(VALUE klass)
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
void
|
||||||
rb_ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size)
|
rb_ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size)
|
||||||
{
|
{
|
||||||
ec->vm_stack = stack;
|
ec->vm_stack = stack;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue