update readme
This commit is contained in:
parent
249202df54
commit
b236173ad9
1 changed files with 55 additions and 53 deletions
12
README.md
12
README.md
|
@ -89,13 +89,15 @@ NAMEOF(NAMEOF(structvar)) -> "NAMEOF"
|
|||
|
||||
## Remarks
|
||||
|
||||
* Nameof return std::string_view.
|
||||
|
||||
* If arguments does not have name, Nameof return empty string.
|
||||
* Nameof return std::string_view. If arguments does not have name, Nameof return empty string.
|
||||
|
||||
* Nameof expression arguments are identified, but do not evaluated.
|
||||
|
||||
* NAMEOF_ENUM supported on the GCC >= 9.
|
||||
* Enum variable must be in range (-NAMEOF_ENUM_RANGE, NAMEOF_ENUM_RANGE). By default NAMEOF_ENUM_RANGE = 128. If you need a larger range, redefine the macro NAMEOF_ENUM_RANGE.
|
||||
```cpp
|
||||
#define NAMEOF_ENUM_RANGE 1028 // Redefine NAMEOF_ENUM_RANGE for larger range.
|
||||
#include <nameof.hpp>
|
||||
```
|
||||
|
||||
* If you need of raw fully-qualified name, use NAMEOF_RAW.
|
||||
```cpp
|
||||
|
@ -119,6 +121,6 @@ You should add required file [nameof.hpp](include/nameof.hpp).
|
|||
* Clang/LLVM >= 5
|
||||
* Visual C++ >= 15.3 / Visual Studio >= 2017
|
||||
* Xcode >= 9
|
||||
* GCC >= 7
|
||||
* GCC >= 7 (GCC >= 9 for NAMEOF_ENUM)
|
||||
|
||||
## Licensed under the [MIT License](LICENSE)
|
||||
|
|
Loading…
Reference in a new issue