polserver/pol-core/bscript/StoredToken.h
turleypol 21577d8e5b
Clang Tidy concat namespaces (#855)
* tidy

* Automated clang-tidy change: modernize-concat-nested-namespaces

* compile test

* fix namespace

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-17 10:30:21 +01:00

37 lines
710 B
C++

#ifndef POLSERVER_STOREDTOKEN_H
#define POLSERVER_STOREDTOKEN_H
#ifndef __TOKENS_H
#include "tokens.h"
#endif
namespace Pol::Bscript
{
#ifdef _MSC_VER
#pragma pack( push, 1 )
#endif
// bitfields
class StoredToken
{
public:
unsigned char type;
unsigned char id;
unsigned short offset;
unsigned char module;
explicit StoredToken( unsigned char aModule = 0, int aID = CTRL_STATEMENTBEGIN,
BTokenType aType = TYP_CONTROL,
unsigned aOffset = 0 //,
// unsigned aNargs = 0
);
} POSTSTRUCT_PACK;
#ifdef _MSC_VER
#pragma pack( pop )
#endif
} // namespace Pol::Bscript
#endif // POLSERVER_STOREDTOKEN_H