You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
723 B
C++
32 lines
723 B
C++
15 years ago
|
#ifndef INTERPRETER_RUNTIME_H_INCLUDED
|
||
|
#define INTERPRETER_RUNTIME_H_INCLUDED
|
||
|
|
||
|
#include "types.hpp"
|
||
|
|
||
|
namespace Interpreter
|
||
|
{
|
||
|
class Context;
|
||
|
|
||
|
/// Runtime data and engine interface
|
||
|
|
||
|
class Runtime
|
||
|
{
|
||
|
Context& mContext;
|
||
|
const Interpreter::Type_Code *mCode;
|
||
|
int mCodeSize;
|
||
|
|
||
|
public:
|
||
|
|
||
|
Runtime (Context& context);
|
||
|
|
||
|
void configure (const Interpreter::Type_Code *code, int codeSize);
|
||
|
///< \a context and \a code must exist as least until either configure, clear or
|
||
|
/// the destructor is called. \a codeSize is given in 32-bit words.
|
||
|
|
||
|
void clear();
|
||
|
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|