mirror of
https://github.com/gabime/spdlog.git
synced 2025-03-31 10:22:41 +08:00
add example to FMT_STRING
This commit is contained in:
parent
ea5e7182ab
commit
92467db591
@ -300,6 +300,15 @@ void android_example()
|
|||||||
android_logger->critical("Use \"adb shell logcat\" to view this message.");
|
android_logger->critical("Use \"adb shell logcat\" to view this message.");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
---
|
||||||
|
#### Compile-time format string syntax checking
|
||||||
|
```C++
|
||||||
|
#include "spdlog/spdlog.h"
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
spdlog::info(FMT_STRING("{:d} is an invalid format tag"));
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Benchmarks
|
## Benchmarks
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user