Is there a way to know at compile time if a Proc is a closure?

I’m writing some macros that capture blocks, but these blocks must have not closure_data, I known the compiler has a way to check for that, since it does that on auto cast of Procs in C function calls, but is the user able to do the same?