This is an analogue of another question , anyway, I'm looking for a specific way for the platform to do this if it exists on iOS.
Developing for the Apple platform means that a non-Apple toolkit is usually not applicable. Therefore, I want to find my own way of the platform. Since a simple google search gave me this ( heap ) , I'm sure there is an API function too.
I am only looking for this to validate the debug assembly to detect a case of deleting an object allocated by the stack. Therefore, it is enough to know where the address is indicated - a stack or a heap. Therefore, performance, version compatibility, the internal API, or any quality problems do not matter. (maybe simulator testing may also be an option). But I think that this is not so difficult operation if the stack is completely separated from the heap.
I noted C ++, but an API in any other language is also great if it is applicable to C ++.
Eonil source share