Sirikata
|
#include "../JSUtil.hpp"
#include "../JSObjectScript.hpp"
#include <v8.h>
Go to the source code of this file.
Namespaces | |
namespace | Sirikata |
Note: All the classes provided in this file are thin wrappers around the corresponding classes in ASIO. | |
namespace | Sirikata::JS |
namespace | Sirikata::JS::JSContext |
Defines | |
#define | INLINE_DECODE_CONTEXT_ERROR(toConvert, whereError, whereWriteTo) |
Functions | |
v8::Handle< v8::Value > | Sirikata::JS::JSContext::ScriptExecute (const v8::Arguments &args) |
v8::Handle< v8::Value > | Sirikata::JS::JSContext::ScriptSuspend (const v8::Arguments &args) |
Calling suspends sandbox. | |
v8::Handle< v8::Value > | Sirikata::JS::JSContext::ScriptResume (const v8::Arguments &args) |
Resumes suspended sandbox. | |
v8::Handle< v8::Value > | Sirikata::JS::JSContext::ScriptClear (const v8::Arguments &args) |
Destroys all objects that were created in this context + all of this context's subcontexts. | |
void | Sirikata::JS::JSContext::setNullContext (const v8::Arguments &args) |
Sets args.This to point to null instead of a timer object. |
#define INLINE_DECODE_CONTEXT_ERROR | ( | toConvert, | |
whereError, | |||
whereWriteTo | |||
) |
JSContextStruct* whereWriteTo = NULL; \ { \ String _errMsg = "In " #whereError " of sandbox. Cannot complete because likely already cleared this sandbox."; \ whereWriteTo = JSContextStruct::decodeContextStruct(toConvert,_errMsg); \ if (whereWriteTo == NULL) \ { \ return v8::ThrowException(v8::Exception::Error(v8::String::New(_errMsg.c_str(), _errMsg.length()))); \ } \ }
Referenced by Sirikata::JS::JSContext::ScriptClear(), and Sirikata::JS::JSContext::ScriptExecute().