Add additional documentation for log
This commit is contained in:
parent
f354b2d733
commit
68dd09d561
@ -24,18 +24,23 @@ constexpr char endl_char = '\n';
|
|||||||
/**
|
/**
|
||||||
* \brief Log stream
|
* \brief Log stream
|
||||||
*
|
*
|
||||||
* String stream that overrides sync() to flush the stream to the correct
|
* String stream that overrides flush() to flush the stream to the correct
|
||||||
* output depending on the platform. Each flush is treated as a separate message.
|
* output depending on the platform. Each flush is treated as a separate message.
|
||||||
* The capacity of the stream depends on the platform.
|
*
|
||||||
|
* Different streams may share a buffer, so writing to a different stream
|
||||||
|
* without flushing the previous may cause strange behaviour.
|
||||||
|
*
|
||||||
|
* The capacity of the stream depends on the platform, but will always be at
|
||||||
|
* least 255 characters.
|
||||||
*
|
*
|
||||||
* See mtl::basic_string_stream for information on when the stream is flushed.
|
* See mtl::basic_string_stream for information on when the stream is flushed.
|
||||||
*
|
*
|
||||||
* Platform specific info:
|
* Platform specific info:
|
||||||
*
|
*
|
||||||
* GBA: Flushing cannot be done without printing to a new line. Trying to
|
* GBA: Flushing cannot be done without printing to a new line. Trying to
|
||||||
* insert a newline will instead just flush the stream onto a new line. On MGBA
|
* flush without using mtl::endl will still flush the stream onto a new line.
|
||||||
* this also starts the line with "GBA Debug: ", so the line is not completely
|
* On MGBA this also starts the line with "GBA Debug: ",so the line is not
|
||||||
* blank.
|
* completely blank either.
|
||||||
*/
|
*/
|
||||||
class stream : public basic_string_stream<false, endl_char> {
|
class stream : public basic_string_stream<false, endl_char> {
|
||||||
private:
|
private:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user