Add QUIRC_ASSERT

This commit is contained in:
YAMAMOTO Takashi 2021-05-11 13:22:54 +09:00
parent 40def012e7
commit dd6c64cafe

View file

@ -17,10 +17,13 @@
#ifndef QUIRC_INTERNAL_H_ #ifndef QUIRC_INTERNAL_H_
#define QUIRC_INTERNAL_H_ #define QUIRC_INTERNAL_H_
#include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include "quirc.h" #include "quirc.h"
#define QUIRC_ASSERT(a) assert(a)
#define QUIRC_PIXEL_WHITE 0 #define QUIRC_PIXEL_WHITE 0
#define QUIRC_PIXEL_BLACK 1 #define QUIRC_PIXEL_BLACK 1
#define QUIRC_PIXEL_REGION 2 #define QUIRC_PIXEL_REGION 2