37 lines
740 B
C++
37 lines
740 B
C++
|
/*
|
||
|
* 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)
|
||
|
{
|
||
|
LOG_WARN (msg);
|
||
|
}
|
||
|
|