Skip to content

Commit

Permalink
fixup! src: register external references of dtrace for snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Sep 1, 2021
1 parent 320be7f commit 683a7b4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/node_external_reference.h
Expand Up @@ -53,7 +53,6 @@ class ExternalReferenceRegistry {
V(buffer) \
V(contextify) \
V(credentials) \
V(dtrace) \
V(env_var) \
V(errors) \
V(fs) \
Expand Down Expand Up @@ -98,10 +97,17 @@ class ExternalReferenceRegistry {
#define EXTERNAL_REFERENCE_BINDING_LIST_INSPECTOR(V)
#endif // HAVE_INSPECTOR

#if HAVE_DTRACE || HAVE_ETW
#define EXTERNAL_REFERENCE_BINDING_LIST_DTRACE(V) V(dtrace)
#else
#define EXTERNAL_REFERENCE_BINDING_LIST_DTRACE(V)
#endif

#define EXTERNAL_REFERENCE_BINDING_LIST(V) \
EXTERNAL_REFERENCE_BINDING_LIST_BASE(V) \
EXTERNAL_REFERENCE_BINDING_LIST_INSPECTOR(V) \
EXTERNAL_REFERENCE_BINDING_LIST_I18N(V)
EXTERNAL_REFERENCE_BINDING_LIST_I18N(V) \
EXTERNAL_REFERENCE_BINDING_LIST_DTRACE(V)

} // namespace node

Expand Down

0 comments on commit 683a7b4

Please sign in to comment.