File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ static VALUE _rb_js_import_from_js(VALUE obj) {
438
438
* Returns +obj+ wrapped by JS class RbValue.
439
439
*/
440
440
static VALUE _rb_js_obj_wrap (VALUE obj , VALUE wrapping ) {
441
- #if JS_ENABLE_COMPONENT_MODEL
441
+ #ifdef JS_ENABLE_COMPONENT_MODEL
442
442
rb_abi_stage_rb_value_to_js (wrapping );
443
443
return jsvalue_s_new (rb_js_abi_host_rb_object_to_js_rb_value ());
444
444
#else
@@ -511,7 +511,7 @@ static VALUE _rb_js_false_to_js(VALUE obj) {
511
511
* Returns +self+ as a JS::Object.
512
512
*/
513
513
static VALUE _rb_js_proc_to_js (VALUE obj ) {
514
- #if JS_ENABLE_COMPONENT_MODEL
514
+ #ifdef JS_ENABLE_COMPONENT_MODEL
515
515
rb_abi_stage_rb_value_to_js (obj );
516
516
return jsvalue_s_new (ruby_js_js_runtime_proc_to_js_function ());
517
517
#else
Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ bool rb_abi_guest_rb_set_should_prohibit_rewind(bool value) {
358
358
return old ;
359
359
}
360
360
361
+ #ifdef JS_ENABLE_COMPONENT_MODEL
362
+
361
363
static VALUE rb_abi_export_stage = Qnil ;
362
364
static rb_abi_guest_own_rb_abi_value_t rb_abi_export_rb_value_to_js (void ) {
363
365
VALUE staged = rb_abi_export_stage ;
@@ -372,8 +374,6 @@ void rb_abi_stage_rb_value_to_js(VALUE value) {
372
374
rb_abi_export_stage = value ;
373
375
}
374
376
375
- #ifdef JS_ENABLE_COMPONENT_MODEL
376
-
377
377
extern void __wasm_call_ctors (void );
378
378
static inline void __wasm_call_ctors_if_needed (void ) {
379
379
static bool __wasm_call_ctors_done = false;
You can’t perform that action at this time.
0 commit comments