diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-11-17 19:56:02 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-11-17 19:56:02 +0900 |
| commit | c129e01125f7ed297cd1e261d6edc0e75781cf19 (patch) | |
| tree | 714fa75ea42fa071f60e4f049b8c8a7c5b74e5df | |
| parent | a6fe3feacdfce00f42aadd4880cba3b67ff9a5d4 (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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12107
| -rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3583,7 +3583,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; |
