errors 0.6.3
Loading...
Searching...
No Matches
errors::source_location Struct Reference

The source location. More...

#include <errors/source_location.hpp>

Public Member Functions

constexpr const char * file_name () const noexcept
 Returns the file name, or "unsupported" if it is not supported by the compiler.
 
constexpr const char * function_name () const noexcept
 Returns the function name.
 
constexpr uint_least32_t line () const noexcept
 Returns the line number.
 
constexpr std::uint_least32_t column () const noexcept
 Returns the column number, or 0 if it is not supported by the compiler.
 

Static Public Member Functions

static constexpr source_location current (const char *fileName="unsupported", const char *functionName="unsupported", const uint_least32_t lineNumber=0, const uint_least32_t columnOffset=0) noexcept
 Returns the current source location.
 

Detailed Description

The source location.


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