diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-11-17 19:56:02 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2024-11-19 19:31:46 +0900 |
| commit | 2861aa22d01a817d84842dec8cc7a57c01f96139 (patch) | |
| tree | 98eac00afd25eaad6d17e5f27667326a48c39463 | |
| parent | 0c8a3181c0ad21051a291d82cb24979bfa3bf2c4 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
