Skip to content

Commit e2f4368

Browse files
committed
doc: add documentation on RIOT_FILE_NOPATH
1 parent 9e14379 commit e2f4368

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,25 @@
6666
* source compiles, however, the including `*.c`/`*.cpp` file will be
6767
* substituted.
6868
* @see `__FILE__` for absolute filenames that also work with *.h files
69+
* @see @ref RIOT_FILE_NOPATH
6970
*/
7071
#if DOXYGEN
7172
# define RIOT_FILE_RELATIVE
7273
#endif
7374

75+
/**
76+
* @def RIOT_FILE_NOPATH
77+
* @brief Provides the current filename without the parent directory path
78+
* @warning This only works within `*.c` and `*.cpp` files. For `*.h`/`*.hpp` files the
79+
* source compiles, however, the including `*.c`/`*.cpp` file will be
80+
* substituted.
81+
* @see `__FILE__` for absolute filenames that also work with *.h files
82+
* @see @ref RIOT_FILE_RELATIVE
83+
*/
84+
#if DOXYGEN
85+
# define RIOT_FILE_NOPATH
86+
#endif
87+
7488
/**
7589
* @def CONFIG_THREAD_NAMES
7690
* @brief This global macro enable storage of thread names to help developers.

0 commit comments

Comments
 (0)