polserver/pol-core/bscript/token.cpp
turleypol 1463b76c7c
Includes are now all relative to pol-core basefolder (#906)
* all except pol

* pol and includes under defines

* something weird has happened

* remove own folder from include searchpath

* fixed remaining, adapted include style for external headers

* missing include
2026-07-25 23:01:18 +02:00

46 lines
689 B
C++

/** @file
*
* @par History
* - 2006/10/06 Shinigami: malloc.h -> stdlib.h
*/
#include "bscript/token.h"
#include "bscript/modules.h"
#include <cstring>
namespace Pol::Bscript
{
/**
* Initializes an empty token
*/
Token::Token()
: id( TOK_TERM ),
type( TYP_TERMINATOR ),
dval( 0.0 ),
precedence( -1 ),
dbg_filenum( 0 ),
dbg_linenum( 0 ),
lval( 0 ),
deprecated( false ),
module( Mod_Basic ),
token()
{
}
/**
* Erases all the content from the String (s), that becomes empty
*/
void Token::nulStr()
{
token.clear();
}
void Token::setStr( std::string str )
{
token = std::move( str );
}
} // namespace Pol::Bscript