metatest::location

location instances represent locations in the source code. Instances are immutable, thus their state can not be changed after construction.

A special macro, METATEST_HERE represents the current location.

#include <metatest/location.hpp>

Constructors

location::location(const std::string& filename_, int line_number_)

Creates a new instance with the specified properties.

Methods

None of the methods throws an exception.

const std::string& location::filename() const

Name of the file, where the test case was registered.

int location::line_number() const

Line number, where the test case was registered.

[up]