33 lines
812 B
Markdown
33 lines
812 B
Markdown
|
# `#include <soi>`
|
||
|
|
||
|
Include soi and you're ready to go!
|
||
|
|
||
|
## dbg(...)
|
||
|
|
||
|
You can debug any expressions using the macro dbg().
|
||
|
|
||
|
## Configuration
|
||
|
|
||
|
You can set the following environment variables to customize the behaviour.
|
||
|
|
||
|
`SOI_H_COLOR`: By default, colored output is shown in case a terminal is connected.
|
||
|
You can force colors with `SOI_H_COLOR=1` and shut them off with `SOI_H_COLOR=0`.
|
||
|
|
||
|
`SOI_H_EOFCHECK`: By default, it is *not* checked, whether you have read all the
|
||
|
input. In case you pipe the input from a file or want to issue a proper EOF
|
||
|
character (Control D under linux or Control Z under Windows), you can enable
|
||
|
this check using `SOI_H_COLOR=1`.
|
||
|
|
||
|
## Template
|
||
|
Using this header is as simple as:
|
||
|
|
||
|
```
|
||
|
#include <soi>
|
||
|
|
||
|
signed main() {
|
||
|
// your code goes here
|
||
|
}
|
||
|
```
|
||
|
|
||
|
It requires at least c++11 to function.
|