Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

declare a forward reference to block typedef?

in one header file I have something like:

typedef void (^MyBlock)(void);

I need to use that same exact reference in another header file.

Sure, I can #import one header file into another, or include the typedef in the global pre-compiled header, but instead is there a way to forward reference the block typedef?

like image 558
Brad Cupit Avatar asked Jan 25 '11 13:01

Brad Cupit


1 Answers

Not as far as I know, I'd just put it in a shared header and include it where it is needed.

like image 102
Joshua Weinberg Avatar answered Nov 10 '22 16:11

Joshua Weinberg