libcruft-util/cruft/util/debug/warn.cpp

37 lines
746 B
C++
Raw Permalink Normal View History

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2010-2021 Danny Robson <danny@nerdcruft.net>
*/
#include "./warn.hpp"
#include "../log.hpp"
////////////////////////////////////////////////////////////////////////////////
void
warn (void)
{
warn ("Unusual code path found.");
}
//-----------------------------------------------------------------------------
void
warn (const std::string &msg)
{
warn (msg.c_str ());
}
//-----------------------------------------------------------------------------
void
warn (const char *msg)
{
2021-04-14 10:23:33 +10:00
LOG_WARN ("{}", msg);
}