mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 19:54:13 +08:00
Add assert.h
This commit is contained in:
parent
fd1e6d776a
commit
67688af4ba
8
helper.h
8
helper.h
@ -9,9 +9,15 @@
|
|||||||
* helper functions and macros
|
* helper functions and macros
|
||||||
* -------------------------------------------------------------*/
|
* -------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef XY_H
|
||||||
|
#define XY_H
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
|
// #define NDEBUG
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
@ -118,3 +124,5 @@ xy_warn (const char* str1)
|
|||||||
fprintf(stderr, buf);
|
fprintf(stderr, buf);
|
||||||
free(buf);
|
free(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user