mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* tidy * Automated clang-tidy change: modernize-concat-nested-namespaces * compile test * fix namespace --------- Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
37 lines
710 B
C++
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
|