mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 03:57:45 +00:00
Move Embedded Net Data out of Anon Namespace
fixes https://github.com/official-stockfish/Stockfish/issues/5714 closes https://github.com/official-stockfish/Stockfish/pull/5715 No functional change
This commit is contained in:
@@ -38,7 +38,6 @@
|
|||||||
#include "nnue_common.h"
|
#include "nnue_common.h"
|
||||||
#include "nnue_misc.h"
|
#include "nnue_misc.h"
|
||||||
|
|
||||||
namespace {
|
|
||||||
// Macro to embed the default efficiently updatable neural network (NNUE) file
|
// Macro to embed the default efficiently updatable neural network (NNUE) file
|
||||||
// data in the engine binary (using incbin.h, by Dale Weiler).
|
// data in the engine binary (using incbin.h, by Dale Weiler).
|
||||||
// This macro invocation will declare the following three variables
|
// This macro invocation will declare the following three variables
|
||||||
@@ -58,6 +57,8 @@ const unsigned char* const gEmbeddedNNUESmallEnd = &gEmbeddedNNUESmallData[1
|
|||||||
const unsigned int gEmbeddedNNUESmallSize = 1;
|
const unsigned int gEmbeddedNNUESmallSize = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
struct EmbeddedNNUE {
|
struct EmbeddedNNUE {
|
||||||
EmbeddedNNUE(const unsigned char* embeddedData,
|
EmbeddedNNUE(const unsigned char* embeddedData,
|
||||||
const unsigned char* embeddedEnd,
|
const unsigned char* embeddedEnd,
|
||||||
|
|||||||
Reference in New Issue
Block a user