Use real panic that reports file/line (#4758)

This commit is contained in:
Jack May
2019-06-20 19:10:03 -07:00
committed by GitHub
parent 425ac8d520
commit 4177c56c51
4 changed files with 31 additions and 20 deletions

View 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;
}