include/mruby/cdump.h: Add new error codes.

src/cdump.h: Use error codes defined in mruby/cdump.h.
This commit is contained in:
Masaki Muranaka
2013-01-15 09:04:51 +09:00
parent 5830553054
commit 85bdd63465
2 changed files with 15 additions and 9 deletions
+3
View File
@@ -23,6 +23,9 @@ int mrb_cdump_irep(mrb_state *mrb, int n, FILE *f,const char *initname);
/* error code */
#define MRB_CDUMP_OK 0
#define MRB_CDUMP_GENERAL_FAILURE -1
#define MRB_CDUMP_WRITE_FAULT -2
#define MRB_CDUMP_INVALID_IREP -6
#define MRB_CDUMP_INVALID_ARGUMENT -7
#if defined(__cplusplus)
} /* extern "C" { */