The Wayback Machine - https://web.archive.org/web/20201130035217/https://github.com/tarantool/tarantool/issues/5365
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn panic macro into a function #5365

Open
igormunkin opened this issue Sep 30, 2020 · 0 comments
Open

Turn panic macro into a function #5365

igormunkin opened this issue Sep 30, 2020 · 0 comments

Comments

@igormunkin
Copy link
Member

@igormunkin igormunkin commented Sep 30, 2020

There is already defined panic macro in say.h header. There is also LuaJIT internal panic routine on Lua global state. Their mix might lead to ridiculous preprocessor results: the LuaJIT panic call (i.e. g->panic(L)) is misexpanded and compilation fails with the corresponding error.

@Gerold103 proposed in his review to turn panic macro into a function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.