parent
117edd233f
commit
795875523b
@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
void __attribute__((noreturn)) __fatal_error(const char *msg) {
|
||||
printf("FATAL ERROR:\n");
|
||||
printf(msg);
|
||||
printf("\n");
|
||||
exit(1);
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
#ifndef __TREZORUNIX_COMMON_H__
|
||||
#define __TREZORUNIX_COMMON_H__
|
||||
|
||||
void __attribute__((noreturn)) __fatal_error(const char *msg);
|
||||
|
||||
#endif
|
Loading…
Reference in new issue