implementation of gcc cleanup attribute for msvc

Newbie Member
14May2012,16:46   #1
cprogrammer112233's Avatar
hello.

how can one implement gcc's cleanup attribute for msvc?
how destructors are implemented on top of msvc?
In addition I want the behavior to be identical to the cleanup attribute so atexit is not an option since the cleanup should be performed at the end of each block.

thanks.