summaryrefslogtreecommitdiffhomepage
path: root/src/dump.c
diff options
context:
space:
mode:
authordearblue <[email protected]>2022-01-02 11:52:19 +0900
committerdearblue <[email protected]>2022-01-02 11:52:19 +0900
commitf2d19aaaacb51ffbcda83105b08a28ba47d1066f (patch)
tree77a8f2806153eedf66f5f922b7ca5736e3514ecb /src/dump.c
parent28ccc664e5dcd3f9d55173e9afde77c4705a9ab6 (diff)
downloadmruby-f2d19aaaacb51ffbcda83105b08a28ba47d1066f.tar.gz
mruby-f2d19aaaacb51ffbcda83105b08a28ba47d1066f.zip
Improves presym scanning
The main purpose is to increase the chances of finding presym and to prevent errors due to C++11 lambda expressions. - The argument to receive the class may be written, for example, `mrb_class_get()`. - The argument that receives the implementation function of the method may be a C++ lambda expression. In this case, if multiple variable declarations are separated by colons, the preprocessor will recognize them as argument delimiters and report an error. This patch prevents it from happening. ```c++ // When preprocessing... func([] { int x, y, z; }) // ^^^^^^^^^^ 1st argument? // ^ 2nd argument? // ^^^^ 3rd argument? ```
Diffstat (limited to 'src/dump.c')
0 files changed, 0 insertions, 0 deletions