micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
Loading...
Searching...
No Matches
micro_os_plus::micro_test_plus::reflection::source_location Class Reference

Local implementation of the std::source_location. More...

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

Public Member Functions

constexpr auto file_name () const noexcept
 
constexpr auto line () const noexcept
 

Static Public Member Functions

static constexpr auto current (const char *file="unknown", int line={}) noexcept
 

Private Attributes

const char * file_ { "unknown" }
 
int line_ {}
 

Detailed Description

Local implementation of the std::source_location.

Definition at line 57 of file reflection.h.

Member Function Documentation

◆ current()

static constexpr auto micro_os_plus::micro_test_plus::reflection::source_location::current ( const char * file = "unknown",
int line = {} )
inlinestaticconstexprnoexcept

Definition at line 61 of file reflection.h.

◆ file_name()

constexpr auto micro_os_plus::micro_test_plus::reflection::source_location::file_name ( ) const
inlineconstexprnoexcept

Definition at line 76 of file reflection.h.

◆ line()

constexpr auto micro_os_plus::micro_test_plus::reflection::source_location::line ( ) const
inlineconstexprnoexcept

Definition at line 82 of file reflection.h.

Member Data Documentation

◆ file_

const char* micro_os_plus::micro_test_plus::reflection::source_location::file_ { "unknown" }
private

Definition at line 88 of file reflection.h.

◆ line_

int micro_os_plus::micro_test_plus::reflection::source_location::line_ {}
private

Definition at line 89 of file reflection.h.


The documentation for this class was generated from the following file: