diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-11-02 22:58:12 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-11-02 22:58:12 +0900 |
| commit | d9e253255218b04fd54a55980c4d8b6d61b1697c (patch) | |
| tree | 4551d1cb9734b057b0b3781c7c636fa65ed2ad39 /include | |
| parent | 9c5e28646b8c7fece19cf614cb05d6e14adca2f3 (diff) | |
| download | mruby-d9e253255218b04fd54a55980c4d8b6d61b1697c.tar.gz mruby-d9e253255218b04fd54a55980c4d8b6d61b1697c.zip | |
Remove reserved symbols for now.
It should be done by planned embedded symbols.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/symbol.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/include/mruby/symbol.h b/include/mruby/symbol.h deleted file mode 100644 index b0feccc51..000000000 --- a/include/mruby/symbol.h +++ /dev/null @@ -1,40 +0,0 @@ -/* -** mruby/symbol.h - symbol utilities -** -** See Copyright Notice in mruby.h -*/ - -#ifndef MRUBY_SYMBOL_H -#define MRUBY_SYMBOL_H - -#include "common.h" - -/** - * Symbol utilities - */ -MRB_BEGIN_DECL - -typedef enum mrb_reserved_symbol { - mrb_sym_null = 0, // NULL symbol - - mrb_sym_add = 1, // + - mrb_sym_sub = 2, // - - mrb_sym_mul = 3, // * - mrb_sym_div = 4, // / - mrb_sym_eq = 5, // == - mrb_sym_lt = 6, // < - mrb_sym_le = 7, // <= - mrb_sym_gt = 8, // > - mrb_sym_ge = 9, // >= - - mrb_sym_method_missing = 10, // method_missing -} mrb_reserved_symbol; - -static inline mrb_bool -mrb_symbol_constsym_send_p(mrb_sym sym) { - return mrb_sym_add <= sym && sym <= mrb_sym_ge; -} - -MRB_END_DECL - -#endif /* MRUBY_SYMBOL_H */ |
