I was about to write a helper function that dispatches to either malloc or alloca then I realized how flawed this idea is. If only there was a way to alloca in one of your callers, by getting some kind of handle from them...
Replying to @rrika9
Maybe just a separate stack for allocations? You could even make it so that objects can be destroyed in arbitrary order, but actual freeing is deferred until all object at the top of the stack are destroyed.
1:33 AM - 29 Sep 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.