polserver/pol-core/bscript/tokens.cpp

34 lines
488 B
C++
Raw Permalink Normal View History

/** @file
*
* @par History
* - 2015/12/29 Bodom: created this file
*/
#include "tokens.h"
namespace Pol
{
namespace Clib
{
/**
* Template specialization for outputting the token type
*/
template <>
std::string tostring( const Bscript::BTokenType& v )
{
return tostring( static_cast<int>( v ) );
}
/**
* Template specialization for outputting the token ID
*/
template <>
std::string tostring( const Bscript::BTokenId& v )
{
return tostring( static_cast<int>( v ) );
}
}
}