The C and C++ Include Header Files
/usr/include/nodejs/src/node_context_data.h
$ cat -n /usr/include/nodejs/src/node_context_data.h 1 #ifndef SRC_NODE_CONTEXT_DATA_H_ 2 #define SRC_NODE_CONTEXT_DATA_H_ 3 4 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 5 6 namespace node { 7 8 // Pick an index that's hopefully out of the way when we're embedded inside 9 // another application. Performance-wise or memory-wise it doesn't matter: 10 // Context::SetAlignedPointerInEmbedderData() is backed by a FixedArray, 11 // worst case we pay a one-time penalty for resizing the array. 12 #ifndef NODE_CONTEXT_EMBEDDER_DATA_INDEX 13 #define NODE_CONTEXT_EMBEDDER_DATA_INDEX 32 14 #endif 15 16 #ifndef NODE_CONTEXT_SANDBOX_OBJECT_INDEX 17 #define NODE_CONTEXT_SANDBOX_OBJECT_INDEX 33 18 #endif 19 20 #ifndef NODE_CONTEXT_ALLOW_WASM_CODE_GENERATION_INDEX 21 #define NODE_CONTEXT_ALLOW_WASM_CODE_GENERATION_INDEX 34 22 #endif 23 24 #ifndef NODE_CONTEXT_TAG 25 #define NODE_CONTEXT_TAG 35 26 #endif 27 28 enum ContextEmbedderIndex { 29 kEnvironment = NODE_CONTEXT_EMBEDDER_DATA_INDEX, 30 kSandboxObject = NODE_CONTEXT_SANDBOX_OBJECT_INDEX, 31 kAllowWasmCodeGeneration = NODE_CONTEXT_ALLOW_WASM_CODE_GENERATION_INDEX, 32 kContextTag = NODE_CONTEXT_TAG, 33 }; 34 35 } // namespace node 36 37 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 38 39 #endif // SRC_NODE_CONTEXT_DATA_H_
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2024 MyWebUniversity.com ™