I want to intercept calls to VDK's internal KernelPanic() function to set a flag that would illuminate an LED on the board, and then call VDK's internal KernelPanic() function. How is this done? Is it as simple as globally defining my own KernelPanic() function and within it, after setting the flag, calling VDK_KernelPanic() or VDK::KernelPanic() ?
↧