diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-12 11:14:25 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-12 11:14:25 +0900 |
| commit | 22ffc1108b34b11989a020d38224881684c9671a (patch) | |
| tree | da801b8d3b55661352b56338fa842647f7771a93 /src/print.c | |
| parent | 793fbab7d571d7e2e71cb35e5abdb8c0a309a2c5 (diff) | |
| download | mruby-22ffc1108b34b11989a020d38224881684c9671a.tar.gz mruby-22ffc1108b34b11989a020d38224881684c9671a.zip | |
src/print.c: stop warning with `MRB_NO_STDIO`.
Diffstat (limited to 'src/print.c')
| -rw-r--r-- | src/print.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/print.c b/src/print.c index 607eb9d1f..c96189fe9 100644 --- a/src/print.c +++ b/src/print.c @@ -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) |
