Function reaper_low::firewall
source · [−]Expand description
This function catches panics before they reach REAPER.
This function is supposed to be wrapped around all Rust code that is called directly by REAPER, e.g. control surface callbacks or command hooks. Its purpose it to establish a fault barrier in order to prevent REAPER from crashing if a non-recoverable error occurs in the plug-in (a panic).
Right now this doesn’t do anything else than calling catch_unwind()
but it might do more in
future. Please note that logging is not supposed to be done here. It should be done in the
panic hook instead.