w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

scanning.h
Go to the documentation of this file.
1 /**
2 ** @file mruby/presym/scanning.h - Scanning Preallocated Symbols
3 **
4 ** See Copyright Notice in mruby.h
5 */
6 
7 #ifndef MRUBY_PRESYM_SCANNING_H
8 #define MRUBY_PRESYM_SCANNING_H
9 
10 #define MRB_PRESYM_SCANNING_TAGGED(arg) <@! arg !@>
11 
12 #undef mrb_intern_lit
13 #define mrb_intern_lit(mrb, name) MRB_PRESYM_SCANNING_TAGGED(name)
14 #define mrb_intern_cstr(mrb, name) MRB_PRESYM_SCANNING_TAGGED(name)
15 #define mrb_define_method(mrb, c, name, f, a) MRB_PRESYM_SCANNING_TAGGED(name)
16 #define mrb_define_class_method(mrb, c, name, f, a) MRB_PRESYM_SCANNING_TAGGED(name)
17 #define mrb_define_singleton_method(mrb, c, name, f, a) MRB_PRESYM_SCANNING_TAGGED(name)
18 #define mrb_define_class(mrb, name, s) MRB_PRESYM_SCANNING_TAGGED(name)
19 #define mrb_define_class_under(mrb, o, name, s) MRB_PRESYM_SCANNING_TAGGED(name)
20 #define mrb_define_module(mrb, name) MRB_PRESYM_SCANNING_TAGGED(name)
21 #define mrb_define_module_under(mrb, o, name) MRB_PRESYM_SCANNING_TAGGED(name)
22 #define mrb_define_module_function(mrb, c, name, f, s) MRB_PRESYM_SCANNING_TAGGED(name)
23 #define mrb_define_const(mrb, c, name, v) MRB_PRESYM_SCANNING_TAGGED(name)
24 #define mrb_define_global_const(mrb, name, v) MRB_PRESYM_SCANNING_TAGGED(name)
25 
26 #define MRB_OPSYM(name) MRB_OPSYM__##name(mrb)
27 #define MRB_CVSYM(name) MRB_PRESYM_SCANNING_TAGGED("@@" #name)
28 #define MRB_IVSYM(name) MRB_PRESYM_SCANNING_TAGGED("@" #name)
29 #define MRB_SYM_B(name) MRB_PRESYM_SCANNING_TAGGED(#name "!")
30 #define MRB_SYM_Q(name) MRB_PRESYM_SCANNING_TAGGED(#name "?")
31 #define MRB_SYM_E(name) MRB_PRESYM_SCANNING_TAGGED(#name "=")
32 #define MRB_SYM(name) MRB_PRESYM_SCANNING_TAGGED(#name)
33 
34 #define MRB_OPSYM_2(mrb, name) MRB_OPSYM__##name(mrb)
35 #define MRB_CVSYM_2(mrb, name) MRB_PRESYM_SCANNING_TAGGED("@@" #name)
36 #define MRB_IVSYM_2(mrb, name) MRB_PRESYM_SCANNING_TAGGED("@" #name)
37 #define MRB_SYM_B_2(mrb, name) MRB_PRESYM_SCANNING_TAGGED(#name "!")
38 #define MRB_SYM_Q_2(mrb, name) MRB_PRESYM_SCANNING_TAGGED(#name "?")
39 #define MRB_SYM_E_2(mrb, name) MRB_PRESYM_SCANNING_TAGGED(#name "=")
40 #define MRB_SYM_2(mrb, name) MRB_PRESYM_SCANNING_TAGGED(#name)
41 
42 #define MRB_OPSYM__not(mrb) MRB_PRESYM_SCANNING_TAGGED("!")
43 #define MRB_OPSYM__mod(mrb) MRB_PRESYM_SCANNING_TAGGED("%")
44 #define MRB_OPSYM__and(mrb) MRB_PRESYM_SCANNING_TAGGED("&")
45 #define MRB_OPSYM__mul(mrb) MRB_PRESYM_SCANNING_TAGGED("*")
46 #define MRB_OPSYM__add(mrb) MRB_PRESYM_SCANNING_TAGGED("+")
47 #define MRB_OPSYM__sub(mrb) MRB_PRESYM_SCANNING_TAGGED("-")
48 #define MRB_OPSYM__div(mrb) MRB_PRESYM_SCANNING_TAGGED("/")
49 #define MRB_OPSYM__lt(mrb) MRB_PRESYM_SCANNING_TAGGED("<")
50 #define MRB_OPSYM__gt(mrb) MRB_PRESYM_SCANNING_TAGGED(">")
51 #define MRB_OPSYM__xor(mrb) MRB_PRESYM_SCANNING_TAGGED("^")
52 #define MRB_OPSYM__tick(mrb) MRB_PRESYM_SCANNING_TAGGED("`")
53 #define MRB_OPSYM__or(mrb) MRB_PRESYM_SCANNING_TAGGED("|")
54 #define MRB_OPSYM__neg(mrb) MRB_PRESYM_SCANNING_TAGGED("~")
55 #define MRB_OPSYM__neq(mrb) MRB_PRESYM_SCANNING_TAGGED("!=")
56 #define MRB_OPSYM__nmatch(mrb) MRB_PRESYM_SCANNING_TAGGED("!~")
57 #define MRB_OPSYM__andand(mrb) MRB_PRESYM_SCANNING_TAGGED("&&")
58 #define MRB_OPSYM__pow(mrb) MRB_PRESYM_SCANNING_TAGGED("**")
59 #define MRB_OPSYM__plus(mrb) MRB_PRESYM_SCANNING_TAGGED("+@")
60 #define MRB_OPSYM__minus(mrb) MRB_PRESYM_SCANNING_TAGGED("-@")
61 #define MRB_OPSYM__lshift(mrb) MRB_PRESYM_SCANNING_TAGGED("<<")
62 #define MRB_OPSYM__le(mrb) MRB_PRESYM_SCANNING_TAGGED("<=")
63 #define MRB_OPSYM__eq(mrb) MRB_PRESYM_SCANNING_TAGGED("==")
64 #define MRB_OPSYM__match(mrb) MRB_PRESYM_SCANNING_TAGGED("=~")
65 #define MRB_OPSYM__ge(mrb) MRB_PRESYM_SCANNING_TAGGED(">=")
66 #define MRB_OPSYM__rshift(mrb) MRB_PRESYM_SCANNING_TAGGED(">>")
67 #define MRB_OPSYM__aref(mrb) MRB_PRESYM_SCANNING_TAGGED("[]")
68 #define MRB_OPSYM__oror(mrb) MRB_PRESYM_SCANNING_TAGGED("||")
69 #define MRB_OPSYM__cmp(mrb) MRB_PRESYM_SCANNING_TAGGED("<=>")
70 #define MRB_OPSYM__eqq(mrb) MRB_PRESYM_SCANNING_TAGGED("===")
71 #define MRB_OPSYM__aset(mrb) MRB_PRESYM_SCANNING_TAGGED("[]=")
72 
73 #endif /* MRUBY_PRESYM_SCANNING_H */