flipperzero icon indicating copy to clipboard operation
flipperzero copied to clipboard

Document macro-ed binary invocation methods

Open str4d opened this issue 10 months ago • 1 comments

Being a bit of a devils advocate here: main also, seems to be unsafe since the caller is again required to provide a valid pointer.

The same logic works here as with parse: since it is a generated function, it is accessible to nearby code which may, for example, call it with null.

Not to be too copy-pasty here, something like

# Safety

This should only be called by Flipperzero OS
and never manually.

would be enough.

Originally posted by @JarvisCraft in https://github.com/flipperzero-rs/flipperzero/pull/95#discussion_r1299437196

str4d avatar Aug 25 '23 18:08 str4d