mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
Authors are not forced to use the clang-format setting, but should atleast be inspired by the style. The only thing which is now not allowed are tabs for ident/alignment!
33 lines
488 B
C++
33 lines
488 B
C++
/** @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 ) );
|
|
}
|
|
}
|
|
}
|