AiLibrary  v1.3.0
A single-header C++ Library from Ailurus Studio
Macros Group

On Windows, you can use nice dirent.h implementation from Toni Ronkko (MIT license). More...

Macros

#define STRINGIFY(x)   #x
 Convert a variable name into text. More...
 
#define TO_STRING(x)   STRINGIFY(x)
 Convert a variable value into text. More...
 
#define PRINT_LINE()   std::cout << "Line #" << __LINE__ << std::endl
 Print the line number. More...
 

Detailed Description

Its copy is located at include/dirent.

See also
https://github.com/tronkko/dirent
Some useful macros

Group of useful macros that cannot be implemented as functions

Macro Definition Documentation

◆ PRINT_LINE

#define PRINT_LINE ( )    std::cout << "Line #" << __LINE__ << std::endl

This macro prints the line number on which it was called

◆ STRINGIFY

#define STRINGIFY (   x)    #x

This macro converts a variable name into text, which is useful for debugging

◆ TO_STRING

#define TO_STRING (   x)    STRINGIFY(x)

This macro converts a variable value into text, so you can access the constants defined at compile time as std::string