diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-21 14:53:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-21 14:53:18 +0900 |
| commit | 6c5ccd5abe4e37ea981a28980ea6fc453a842610 (patch) | |
| tree | f81e1aafa0334e8a792800751cc22672eeb3de23 /src/dump.c | |
| parent | 438d114917af8b404c79fc94ec86f414a4ae6d60 (diff) | |
| parent | 90b53f4c29dd845140175943263b9c67995324c4 (diff) | |
| download | mruby-6c5ccd5abe4e37ea981a28980ea6fc453a842610.tar.gz mruby-6c5ccd5abe4e37ea981a28980ea6fc453a842610.zip | |
Merge branch 'avoid-including-presym.inc-in-existing-header-files' of https://github.com/shuujii/mruby into shuujii-avoid-including-presym.inc-in-existing-header-files
Diffstat (limited to 'src/dump.c')
| -rw-r--r-- | src/dump.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dump.c b/src/dump.c index 10b6d9dec..dcd94fd45 100644 --- a/src/dump.c +++ b/src/dump.c @@ -1216,7 +1216,10 @@ mrb_dump_irep_cstruct(mrb_state *mrb, const mrb_irep *irep, uint8_t flags, FILE if (fp == NULL || initname == NULL || initname[0] == '\0') { return MRB_DUMP_INVALID_ARGUMENT; } - if (fprintf(fp, "#include <mruby.h>\n" "#include <mruby/proc.h>\n\n") < 0) { + if (fprintf(fp, "#include <mruby.h>\n" + "#include <mruby/proc.h>\n" + "#include <mruby/presym.h>\n" + "\n") < 0) { return MRB_DUMP_WRITE_FAULT; } fputs("#define mrb_BRACED(...) {__VA_ARGS__}\n", fp); |
