Vector35 / snippets

plugin for storing and using snippets of useful Binja script
MIT License
22 stars 9 forks source link

Make current_il_instructions available in snippets #49

Closed hgmich closed 8 months ago

hgmich commented 8 months ago

Creates current_il_instructions as a generator over the selected instructions, same as the implementation in https://github.com/Vector35/binaryninja-api/blob/a542d0c9cd33fed5919c3cd9d598bb8d1a300ae8/python/scriptingprovider.py#L957C1-L960C1.

CLAassistant commented 8 months ago

CLA assistant check
All committers have signed the CLA.

psifertex commented 8 months ago

I was about to comment that this implementation looked a little buggy but it turns out -- so is the original. There's some edge cases it doesn't work very well for but since it's not worse than the original it's probably worth landing for now at least.

psifertex commented 8 months ago

Thanks for the PR!