Toychain!
A toy blockchain in C
error.h
Go to the documentation of this file.
1#ifndef _ERROR_H
2#define _ERROR_H
3#include <stdio.h>
4
10#define MALLOC_ERROR(msg) fprintf(stderr, "malloc error at %d in file %s in function %s\n message : %s \n", __LINE__, __FILE__, __func__, (msg));
11#define FILE_ERROR(msg) fprintf(stderr, "file error at %d in file %s in function %s\n message : %s\n", __LINE__, __FILE__, __func__, (msg));
12#endif