mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
src/print.c: stop warning with MRB_NO_STDIO.
This commit is contained in:
+11
-4
@@ -28,10 +28,6 @@ printstr(mrb_value obj, FILE *stream)
|
||||
printcstr(RSTRING_PTR(obj), RSTRING_LEN(obj), stream);
|
||||
}
|
||||
}
|
||||
#else
|
||||
# define printcstr(str, len, stream) (void)0
|
||||
# define printstr(obj, stream) (void)0
|
||||
#endif
|
||||
|
||||
void
|
||||
mrb_core_init_printabort(void)
|
||||
@@ -51,6 +47,17 @@ mrb_p(mrb_state *mrb, mrb_value obj)
|
||||
printstr(mrb_inspect(mrb, obj), stdout);
|
||||
}
|
||||
}
|
||||
#else
|
||||
void
|
||||
mrb_core_init_printabort(void)
|
||||
{
|
||||
}
|
||||
|
||||
MRB_API void
|
||||
mrb_p(mrb_state *mrb, mrb_value obj)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
MRB_API void
|
||||
mrb_print_error(mrb_state *mrb)
|
||||
|
||||
Reference in New Issue
Block a user