mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 15:49:56 +00:00
27 lines
585 B
C++
27 lines
585 B
C++
#ifndef COMPILER_CONTEXT_H_INCLUDED
|
|
#define COMPILER_CONTEXT_H_INCLUDED
|
|
|
|
namespace Compiler
|
|
{
|
|
class Extensions;
|
|
|
|
class Context
|
|
{
|
|
const Extensions *mExtensions;
|
|
|
|
public:
|
|
|
|
Context() : mExtensions (0) {}
|
|
|
|
virtual ~Context() {}
|
|
|
|
virtual bool canDeclareLocals() const = 0;
|
|
///< Is the compiler allowed to declare local variables?
|
|
|
|
void setExtensions (const Extensions *extensions = 0);
|
|
///< Set compiler extensions.
|
|
};
|
|
}
|
|
|
|
#endif
|
|
|