Use real panic that reports file/line (#4758)
This commit is contained in:
11
programs/bpf/c/src/panic/panic.c
Normal file
11
programs/bpf/c/src/panic/panic.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @brief Example C-based BPF program that prints out the parameters
|
||||
* passed to it
|
||||
*/
|
||||
#include <solana_sdk.h>
|
||||
|
||||
extern bool entrypoint(const uint8_t *input) {
|
||||
sol_panic();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user