micro-test-plus 4.1.0
µTest++ Testing Framework
Loading...
Searching...
No Matches
reflection.cpp File Reference

C++ source file with implementations for the µTest++ methods. More...

#include <cstring>
#include "micro-os-plus/micro-test-plus/reflection.h"

Go to the source code of this file.

Namespaces

namespace  micro_os_plus
 The primary namespace for the µOS++ framework.
namespace  micro_os_plus::micro_test_plus
 Primary namespace for the µTest++ testing framework.
namespace  micro_os_plus::micro_test_plus::reflection
 Reflection utilities for the µTest++ testing framework.

Functions

const char * micro_os_plus::micro_test_plus::reflection::short_name (const char *name) noexcept
 Extract a short type or function name from a fully qualified name.

Detailed Description

This source file contains the implementation of reflection::short_name(), which extracts the base file name from a fully qualified path by returning the portion after the last / separator, or the original string if no separator is present.

All definitions reside within the micro_os_plus::micro_test_plus::reflection namespace.

This file must be included when building the µTest++ library.

Definition in file reflection.cpp.