GitHub

Original file line numberDiff line numberDiff line change

@@ -7,9 +7,7 @@

77

#ifndef MRUBY_PRESYM_H

88

#define MRUBY_PRESYM_H

99
10-

#if defined(MRB_NO_PRESYM)

11-

# include <mruby/presym/disable.h>

12-

#elif !defined(MRB_PRESYM_SCANNING)

10+

#if !defined(MRB_PRESYM_SCANNING)

1311

# include <mruby/presym/enable.h>

1412

#endif

1513

@@ -32,10 +30,9 @@

3230

* can be specified for it). Other than that, describe only word characters

3331

* excluding leading and ending punctuation.

3432

*

35-

* These macros are expanded to `mrb_intern_lit` if presym is disabled,

36-

* therefore the mruby state variable is required. The above macros can be

37-

* used when the variable name is `mrb`. If you want to use other variable

38-

* names, you need to use macros with `_2` suffix, such as `MRB_SYM_2`.

33+

* These macros are expanded to compile-time integer constants.

34+

* The `_2` suffix variants (e.g., `MRB_SYM_2`) accept an explicit

35+

* mruby state parameter but currently ignore it.

3936

*/

4037
4138

#endif /* MRUBY_PRESYM_H */

Read the original on github.com ↗