macro_rules! autoreleasepool {
( $expr:expr ) => { ... };
}Expand description
Run code with its own autorelease pool. Semantically, this is identical
to @autoreleasepool
in Objective-C
use swift_rs::autoreleasepool;
autoreleasepool!({
// do something memory intensive stuff
})