Subversion Repositories HomeAutomation

Rev

Rev 1647 | Rev 1947 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1647 Rev 1945
Line 31... Line 31...
31
 
31
 
32
#include "types.h"
32
#include "types.h"
33
 
33
 
34
namespace atom {
34
namespace atom {
35
namespace vm {
35
namespace vm {
-
 
36
 
-
 
37
#define ATOM_VM_PLUGIN_SCOPE                                                  \
-
 
38
  v8::Locker lock;                                                            \
-
 
39
  v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());    \
-
 
40
  v8::HandleScope handle_scope;
-
 
41
 
-
 
42
#define ATOM_VM_PLUGIN_NUM_PARAMS(number)                                     \
-
 
43
  if (args.Length() < number)                                                 \
-
 
44
  {                                                                           \
-
 
45
    throw atom::exception::missing_in_param;                                  \
-
 
46
  }
36
 
47
 
37
class Plugin
48
class Plugin
38
{
49
{
39
public:
50
public:
40
    typedef boost::shared_ptr<Plugin> Pointer;
51
    typedef boost::shared_ptr<Plugin> Pointer;