2013-12-11 11:48:19 +04:00
|
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
2014-04-25 13:49:37 +04:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2013-12-11 11:48:19 +04:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2014-04-17 09:45:14 +04:00
|
|
|
#ifndef ATOM_COMMON_NODE_INCLUDES_H_
|
|
|
|
#define ATOM_COMMON_NODE_INCLUDES_H_
|
2013-12-11 11:48:19 +04:00
|
|
|
|
2013-12-15 10:20:28 +04:00
|
|
|
// Include common headers for using node APIs.
|
2013-12-11 11:48:19 +04:00
|
|
|
|
|
|
|
#undef CHECK
|
2014-01-10 14:24:44 +04:00
|
|
|
#undef CHECK_EQ
|
|
|
|
#undef CHECK_NE
|
2013-12-11 11:48:19 +04:00
|
|
|
#undef DISALLOW_COPY_AND_ASSIGN
|
|
|
|
#include "vendor/node/src/env.h"
|
2013-12-16 10:46:05 +04:00
|
|
|
#include "vendor/node/src/env-inl.h"
|
2013-12-11 11:48:19 +04:00
|
|
|
#include "vendor/node/src/node.h"
|
2014-04-22 19:07:21 +04:00
|
|
|
#include "vendor/node/src/node_buffer.h"
|
2013-12-11 11:48:19 +04:00
|
|
|
#include "vendor/node/src/node_internals.h"
|
|
|
|
using node::node_isolate;
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
// Defined in node_bindings.cc.
|
2013-12-15 10:20:28 +04:00
|
|
|
// For renderer it's created in atom_renderer_client.cc.
|
|
|
|
// For browser it's created in atom_browser_main_parts.cc.
|
2013-12-11 11:48:19 +04:00
|
|
|
extern node::Environment* global_env;
|
|
|
|
}
|
|
|
|
|
2014-04-17 09:45:14 +04:00
|
|
|
#endif // ATOM_COMMON_NODE_INCLUDES_H_
|