"root source file" panic fn signature?

I see mention of the possibility to have a top level panic fn, but this is a TODO in the documentation. What signature do I need for a global panic catcher please?

I found the std.builtin.panic but it mentions deprecated. It seems to check for “panic” fn name, but the syntax is still a bit beyond me to decode complete fn signature.

top level panic function has been depricated, and will no longer be supported in 0.15. Its been replaced with a panic namespace that has functions for the different builtin panics, as oposed to calling a single function with different messages which was the old implementation.

see std.builtin.panic and std.debug.FullPanic the later creates wrappers around a single function to fulfill the panic api, this is how 0.14 supports the old single function interface.

So if I’m on 0.14.0 the new way would be this?

pub fn panic( msg: []const u8, first_trace_addr: ?usize, ) noreturn

copied from defaultPanic in the docu.

I also found mention of a stacktrace based version, but that also didnt trigger. Maybe there is no panic. I’m running on a SoC and suspect some simple framebuffer blits (just an array copy for bitmap font) might be landing on something important. Or maybe a stack growth issue.