replace nested functions with blocks on clang#24
replace nested functions with blocks on clang#24cute wants to merge 1 commit intoorangeduck:masterfrom
Conversation
|
Thanks this looks great 👍 Can you put it behind another processor flag as well as |
|
Are there any updates on this PR? |
|
Are you interested in using clang blocks for your own project? I can merge this in if there is some interest - just need to add an extra pre-processor flag to guard it. |
|
FWIW, clang doesn't support GCC-style nested functions at all, so there wouldn't be anybody using clang with LuaAutoC from what I can tell. Thus there wouldn't be a need for an additional guard. Using blocks might be the only way to get it building on clang. |
|
You can use clang with LuaAutoC you just need to have separate declaration and registration functions as mentioned in the FAQ under "nested functions": https://github.com/orangeduck/LuaAutoC#faq but yes in general in clang you need to use blocks instead of nested functions. |
|
Ah, yes, my bad. Sorry I spoke overly-definitively! |
No description provided.