polserver/pol-core/bscript/StoredToken.h
2020-07-31 16:19:38 -07:00

38 lines
654 B
C++

#ifndef POLSERVER_STOREDTOKEN_H
#define POLSERVER_STOREDTOKEN_H
#ifndef __TOKENS_H
#include "tokens.h"
#endif
namespace Pol
{
namespace 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
}
}
#endif // POLSERVER_STOREDTOKEN_H