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>
location::location(const std::string& filename_, int line_number_)
Creates a new instance with the specified properties.
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.
Copyright Endre Tamas SAJO (baja at inf dot elte dot hu), Abel Sinkovics (abel at elte dot hu), 2010. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt