typedef void (^MyTestBlock)(void);

MyTestBlock createBlock() {
   int year = 2525;

   MyTestBlock myBlock = ^{
      NSLog(@"W roku %i", year);
   };

   return Block_copy(myBlock);
}

void runTheBlock() {
   MyTestBlock block = createBlock();
   block(); 
   Block_release(block);
}
