remove bug.h include in any .h file
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
#ifndef HASH_H
|
#ifndef HASH_H
|
||||||
#define HASH_H
|
#define HASH_H
|
||||||
|
|
||||||
#include <bug.h>
|
//#include <bug.h>
|
||||||
|
|
||||||
#include "chessdefs.h"
|
#include "chessdefs.h"
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ bool zobrist_verify(pos_t *pos);
|
|||||||
*/
|
*/
|
||||||
static inline void tt_prefetch(hkey_t key)
|
static inline void tt_prefetch(hkey_t key)
|
||||||
{
|
{
|
||||||
bug_on(!hash_tt.keys);
|
// bug_on(!hash_tt.keys);
|
||||||
__builtin_prefetch(hash_tt.keys + (key & hash_tt.mask));
|
__builtin_prefetch(hash_tt.keys + (key & hash_tt.mask));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#include <brlib.h>
|
#include <brlib.h>
|
||||||
#include <bitops.h>
|
#include <bitops.h>
|
||||||
#include <struct-group.h>
|
#include <struct-group.h>
|
||||||
#include <bug.h>
|
// #include <bug.h>
|
||||||
|
|
||||||
#include "chessdefs.h"
|
#include "chessdefs.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <bug.h>
|
|
||||||
|
|
||||||
#include "chessdefs.h"
|
#include "chessdefs.h"
|
||||||
|
|
||||||
#undef safe_malloc
|
#undef safe_malloc
|
||||||
@@ -29,6 +27,7 @@
|
|||||||
#pragma push_macro("BUG_ON")
|
#pragma push_macro("BUG_ON")
|
||||||
#undef BUG_ON
|
#undef BUG_ON
|
||||||
#define BUG_ON
|
#define BUG_ON
|
||||||
|
#include <bug.h>
|
||||||
|
|
||||||
#define safe_malloc(size) ({ \
|
#define safe_malloc(size) ({ \
|
||||||
void *_ret = malloc(size); \
|
void *_ret = malloc(size); \
|
||||||
|
Reference in New Issue
Block a user