update readme

This commit is contained in:
neargye 2019-04-02 18:47:52 +05:00
parent 249202df54
commit b236173ad9

View file

@ -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)