summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-11-17 19:56:02 +0900
committernagachika <nagachika@ruby-lang.org>2024-11-19 19:31:46 +0900
commit2861aa22d01a817d84842dec8cc7a57c01f96139 (patch)
tree98eac00afd25eaad6d17e5f27667326a48c39463
parent0c8a3181c0ad21051a291d82cb24979bfa3bf2c4 (diff)
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.
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index fc5709a4a5..474a145127 100644
--- a/vm.c
+++ b/vm.c
@@ -3307,7 +3307,7 @@ thread_alloc(VALUE klass)
return TypedData_Make_Struct(klass, rb_thread_t, &thread_data_type, th);
}
-inline void
+void
rb_ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size)
{
ec->vm_stack = stack;