diff options
| author | Masaki Muranaka <[email protected]> | 2012-06-15 00:56:00 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2012-06-15 00:56:00 +0900 |
| commit | f564ec7e822c55e8ef6973170818263675b2499f (patch) | |
| tree | 19424b7bba46a3c3c69e1eaec833df8626860731 /src/error.c | |
| parent | c7b1622f40bd7625eaebde228a2c4255488c4ee9 (diff) | |
| download | mruby-f564ec7e822c55e8ef6973170818263675b2499f.tar.gz mruby-f564ec7e822c55e8ef6973170818263675b2499f.zip | |
Remove some redundant code.
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/error.c b/src/error.c index bb334322f..e6ccdf096 100644 --- a/src/error.c +++ b/src/error.c @@ -20,14 +20,6 @@ #define warn_printf printf -#ifndef FALSE -#define FALSE 0 -#endif - -#ifndef TRUE -#define TRUE 1 -#endif - mrb_value mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long len) { @@ -300,28 +292,6 @@ sysexit_status(mrb_state *mrb, mrb_value err) return mrb_fixnum(st); } -void -error_pos(void) -{ -#if 0 - const char *sourcefile = mrb_sourcefile(); - int sourceline = mrb_sourceline(); - - if (sourcefile) { - if (sourceline == 0) { - warn_printf("%s", sourcefile); - } - else if (mrb_frame_callee()) { - warn_printf("%s:%d:in `%s'", sourcefile, sourceline, - mrb_sym2name(mrb, mrb_frame_callee())); - } - else { - warn_printf("%s:%d", sourcefile, sourceline); - } - } -#endif -} - static void set_backtrace(mrb_state *mrb, mrb_value info, mrb_value bt) { |
