Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-derevenetz committed Jan 3, 2025
1 parent 3382fe4 commit 885de6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/engine/serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ int StreamFile::closeFile( std::FILE * f )
const int res = std::fclose( f );

#ifdef __EMSCRIPTEN__
// The following code is not C++ code, but JavaScript code.
// clang-format off
EM_ASM( FS.syncfs( err => err && console.warn( "FS.syncfs() error:", err ) ) );
// clang-format on
Expand Down

0 comments on commit 885de6e

Please sign in to comment.