summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-01-08 20:49:02 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2013-01-08 20:49:02 -0800
commiteab894e5be20babfc5761835a6d085ec077095c0 (patch)
treee1730a438cb6d227d4f443e09bc1913a04237741 /include
parent2c6d34f109c556b8e825aaeb2642f4377ae2f88e (diff)
parentd5b8dc54a69a90b5f0e304fefcd0d62ca10ec64a (diff)
downloadmruby-eab894e5be20babfc5761835a6d085ec077095c0.tar.gz
mruby-eab894e5be20babfc5761835a6d085ec077095c0.zip
Merge pull request #710 from monaka/pr-strict-error-checking
Strict runtime error checking
Diffstat (limited to 'include')
-rw-r--r--include/mruby/dump.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mruby/dump.h b/include/mruby/dump.h
index 1af24ab64..650651a7e 100644
--- a/include/mruby/dump.h
+++ b/include/mruby/dump.h
@@ -28,7 +28,11 @@ int mrb_bdump_irep(mrb_state *mrb, int n, FILE *f,const char *initname);
#define DUMP_TYPE_BIN 1
#define DUMP_TYPE_HEX 2
-/* dump/load error code */
+/* dump/load error code
+ *
+ * NOTE: MRB_DUMP_GENERAL_FAILURE is caused by
+ * unspecified issues like malloc failed.
+ */
#define MRB_DUMP_OK 0
#define MRB_DUMP_GENERAL_FAILURE -1
#define MRB_DUMP_WRITE_FAULT -2