openmw/components/compiler/context.hpp

28 lines
585 B
C++
Raw Normal View History

2010-06-27 19:20:21 +02:00
#ifndef COMPILER_CONTEXT_H_INCLUDED
#define COMPILER_CONTEXT_H_INCLUDED
namespace Compiler
{
2010-07-03 09:54:01 +02:00
class Extensions;
2010-06-27 19:20:21 +02:00
class Context
{
2010-07-03 09:54:01 +02:00
const Extensions *mExtensions;
public:
2010-07-03 09:54:01 +02:00
Context() : mExtensions (0) {}
virtual ~Context() {}
virtual bool canDeclareLocals() const = 0;
///< Is the compiler allowed to declare local variables?
2010-07-03 09:54:01 +02:00
void setExtensions (const Extensions *extensions = 0);
///< Set compiler extensions.
2010-06-27 19:20:21 +02:00
};
}
#endif