File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments