Where Online Learning is simpler!
The C and C++ Include Header Files
cat -n /usr/include/nodejs/src/node_report.h
1 #ifndef SRC_NODE_REPORT_H_ 2 #define SRC_NODE_REPORT_H_ 3 4 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 5 6 #include "node.h" 7 #include "node_buffer.h" 8 #include "uv.h" 9 #include "util.h" 10 11 #ifndef _WIN32 12 #include <sys/types.h> 13 #include <unistd.h> 14 #endif 15 16 #include <iomanip> 17 #include <sstream> 18 19 namespace node { 20 namespace report { 21 // Function declarations - utility functions in src/node_report_utils.cc 22 void WalkHandleNetwork(uv_handle_t* h, void* arg); 23 void WalkHandleNoNetwork(uv_handle_t* h, void* arg); 24 25 template <typename T> 26 std::string ValueToHexString(T value) { 27 std::stringstream hex; 28 29 hex << "0x" << std::setfill('0') << std::setw(sizeof(T) * 2) << std::hex << 30 value; 31 return hex.str(); 32 } 33 34 // Function declarations - export functions in src/node_report_module.cc 35 void WriteReport(const v8::FunctionCallbackInfo<v8::Value>& info); 36 void GetReport(const v8::FunctionCallbackInfo<v8::Value>& info); 37 38 } // namespace report 39 } // namespace node 40 41 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 42 43 #endif // SRC_NODE_REPORT_H_