remove bug.h include in any .h file

This commit is contained in:
2024-06-20 09:13:28 +02:00
parent 879bda850c
commit 0c15be28b1
3 changed files with 4 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
#ifndef HASH_H
#define HASH_H
#include <bug.h>
//#include <bug.h>
#include "chessdefs.h"
@@ -121,7 +121,7 @@ bool zobrist_verify(pos_t *pos);
*/
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));
}

View File

@@ -19,7 +19,7 @@
#include <brlib.h>
#include <bitops.h>
#include <struct-group.h>
#include <bug.h>
// #include <bug.h>
#include "chessdefs.h"
#include "hash.h"

View File

@@ -17,8 +17,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <bug.h>
#include "chessdefs.h"
#undef safe_malloc
@@ -29,6 +27,7 @@
#pragma push_macro("BUG_ON")
#undef BUG_ON
#define BUG_ON
#include <bug.h>
#define safe_malloc(size) ({ \
void *_ret = malloc(size); \