electron/atom/common/node_includes.h

39 строки
1003 B
C
Исходник Обычный вид История

// Copyright (c) 2013 GitHub, Inc.
2014-04-25 13:49:37 +04:00
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_COMMON_NODE_INCLUDES_H_
#define ATOM_COMMON_NODE_INCLUDES_H_
#include "base/logging.h"
// Include common headers for using node APIs.
2015-04-01 16:33:08 +03:00
#define BUILDING_NODE_EXTENSION
2015-01-07 07:53:06 +03:00
#undef ASSERT
#undef CHECK
2014-01-10 14:24:44 +04:00
#undef CHECK_EQ
#undef CHECK_NE
2014-06-28 15:31:23 +04:00
#undef CHECK_GE
#undef CHECK_GT
#undef CHECK_LE
#undef CHECK_LT
#undef DISALLOW_COPY_AND_ASSIGN
2015-01-07 07:53:06 +03:00
#undef NO_RETURN
2014-06-28 15:31:23 +04:00
#undef debug_string // This is defined in OS X 10.9 SDK in AssertMacros.h.
#include "vendor/node/src/env.h"
#include "vendor/node/src/env-inl.h"
#include "vendor/node/src/node.h"
#include "vendor/node/src/node_buffer.h"
#include "vendor/node/src/node_internals.h"
namespace atom {
// Defined in node_bindings.cc.
// For renderer it's created in atom_renderer_client.cc.
// For browser it's created in atom_browser_main_parts.cc.
extern node::Environment* global_env;
}
#endif // ATOM_COMMON_NODE_INCLUDES_H_