Skip to content

Commit

Permalink
fix(boot): define ostream debug in cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed Mar 4, 2024
1 parent e9b1d55 commit ea5e45d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/boot/include/ostream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@ inline auto ostream::operator<<(const void *_val) -> ostream & {
/// @}

/// 全局输出流
static ostream debug;
extern ostream debug;

#endif /* SIMPLEKERNEL_OSTREAM_HPP */
3 changes: 3 additions & 0 deletions src/boot/ostream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ auto ostream::hex_X(ostream &_ostream) -> ostream & {
}

auto ostream::endl(ostream &_ostream) -> ostream & { return _ostream << L'\n'; }

/// 全局输出流
ostream debug;

0 comments on commit ea5e45d

Please sign in to comment.