Where Online Learning is simpler!
The C and C++ Include Header Files
cat -n /usr/include/nodejs/src/async_context_frame.h
1 #ifndef SRC_ASYNC_CONTEXT_FRAME_H_ 2 #define SRC_ASYNC_CONTEXT_FRAME_H_ 3 4 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 5 6 #include "base_object.h" 7 #include "v8.h" 8 9 #include <cstdint> 10 11 namespace node { 12 namespace async_context_frame { 13 14 class Scope { 15 public: 16 explicit Scope(v8::Isolate* isolate, v8::Local<v8::Value> object); 17 ~Scope(); 18 19 private: 20 v8::Isolate* isolate_; 21 v8::Global<v8::Value> prior_; 22 }; 23 24 v8::Local<v8::Value> current(v8::Isolate* isolate); 25 void set(v8::Isolate* isolate, v8::Local<v8::Value> value); 26 v8::Local<v8::Value> exchange(v8::Isolate* isolate, v8::Local<v8::Value> value); 27 28 } // namespace async_context_frame 29 } // namespace node 30 31 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 32 33 #endif // SRC_ASYNC_CONTEXT_FRAME_H_