3 ms·
I spent a long time thinking about this. My conclusion is that the simplest way to achieve this, at least in GCC, is to create a #copy directive that allows a m
by marcodiego 5y ago
I spent a long time thinking about this. My conclusion is that the simplest way to achieve this, at least in GCC, is to create a #copy directive that allows a macro, together with its stack, to be copied to another. GCC already allows stack expansion with push and pop but it can only be expanded once; the #copy directive would fix that.
If you get anything close to that working, that would be a godsend. It is the last remaining piece of the puzzle for me to implement complete RTTI in C. It would certainly help to minimize glib boiler plate code too.
I'd really like it to be part of c2x, but I think it is too late now. If it is implemented by either GCC or Clang, the remaining other would certainly it too since it is too useful. So getting it to work in any of these would be good enough for me.
How can I track/follow your progress?
- bumblebritches5 5y agoYeah, C2x is no longer accepting new proposals at all. Today was the last day for previously-proposed updates, and December 1st was the deadline for new proposals. I got my proposal for Unicode Length Modifiers in on time, but I don't know if it's been accepted yet. As for LLVM, I am just an unemployed dude, but I have a fork of LLVM on my github I push to while testing, but I am new to the Clang codebase so it's slow going. I don't want to say my username publicly tho, is there a way to PM here?