clang format off
#26800
Replies: 1 comment 1 reply
-
|
I don't think the issue has to do with the clang-format on/off. Try replacing case ALL_PIECES: return "AllPieces";
case NO_PIECE_TYPE: return "NoPieceType";with // case ALL_PIECES: return "AllPieces";
case NO_PIECE_TYPE: return "AllPieces/NoPieceType";Then it should build. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to compile Stockfish to WebAssembly with Emscripten.
The browser gives me a "Memory access out of bounds" error.
Debbuging the error I came to this piece of code (https://github.com/oficial-stockfish/src/types.h):
To verify the enum I wrote:
And the compiler output is:
I think this is the source of the error.
I can't refactor the enum because the program use this structure for bitmaps and nnue calculations.
I know Emscripten use
EM_ASMto instruct the formatter to ignore blocks of code with commets but its says nothing about block of codes with code.Do you have any suggestion to find a solution?
This is related to llvm/llvm-project#106983 issue.
I didn't want to open this as an issue becouse I think this goes beyond of that.
I can say that chess.com and lichess.org are using stockfish18 (I don't know if they do it in their web versions).
Beta Was this translation helpful? Give feedback.
All reactions