Skip to content

Commit

Permalink
src: fix ETW_WRITE_EMPTY_EVENT macro
Browse files Browse the repository at this point in the history
A comment was written before the last line, hiding a check.
  • Loading branch information
targos committed Feb 12, 2021
1 parent 6e89d73 commit 4f94dbc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/node_win32_etw_provider-inl.h
Expand Up @@ -111,13 +111,14 @@ extern int events_enabled;
dataDescriptors); \
CHECK_EQ(status, ERROR_SUCCESS);

#define ETW_WRITE_EMPTY_EVENT(eventDescriptor) \
DWORD status = event_write(node_provider, \
&eventDescriptor, \
0, \
NULL); // NOLINT (readability/null_usage) \
// NOLINTNEXTLINE (readability/null_usage)
#define NULL_NOLINT NULL

#define ETW_WRITE_EMPTY_EVENT(eventDescriptor) \
DWORD status = event_write(node_provider, &eventDescriptor, 0, NULL_NOLINT); \
CHECK_EQ(status, ERROR_SUCCESS);

#undef NULL_NOLINT

void NODE_HTTP_SERVER_REQUEST(node_dtrace_http_server_request_t* req,
node_dtrace_connection_t* conn, const char* remote, int port,
Expand Down

0 comments on commit 4f94dbc

Please sign in to comment.