chisel icon indicating copy to clipboard operation
chisel copied to clipboard

Add print capture variables for pblock

Open dhcdht opened this issue 6 years ago • 2 comments

before: Imp: 0x10a451d40 Signature: void ^();

after: Imp: 0x10a451d40 Signature: void ^() Variables : { <ViewController: 0x7fdd9b204060> <AppDelegate: 0x60c00002acc0> };

dhcdht avatar Apr 24 '18 03:04 dhcdht

@kastiglione hi, I have added some comments for max_var_count. max_var_count is the number of placeholders for the variables captured by the block.

the related code

#define BLOCK_VARIABLES_COUNT ($variables_count)
struct Block_literal_1 {
    ...
    // imported variables
    Class *variables[BLOCK_VARIABLES_COUNT];
}

dhcdht avatar May 22 '18 00:05 dhcdht

I think this is super useful! Is this something that is still in progress? If not, I'd be happy to take a stab at the implementation myself.

filip-doordash avatar Mar 25 '20 23:03 filip-doordash