Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Externalize node::no_deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jun 21, 2012
1 parent 48c3d20 commit 8988af5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ev-emul.h
Expand Up @@ -88,7 +88,7 @@ extern "C" {

#define __uv_warn_of(old_, new_) \
do { \
if (__uv_warn_##old_ || no_deprecation) break; \
if (__uv_warn_##old_ || node::no_deprecation) break; \
__uv_warn_##old_ = 1; \
fputs("WARNING: " #old_ " is deprecated, use " #new_ "\n", stderr); \
} \
Expand Down
2 changes: 2 additions & 0 deletions src/node.h
Expand Up @@ -85,6 +85,8 @@

namespace node {

NODE_EXTERN extern bool no_deprecation;

NODE_EXTERN int Start(int argc, char *argv[]);

char** Init(int argc, char *argv[]);
Expand Down
2 changes: 0 additions & 2 deletions src/node_internals.h
Expand Up @@ -28,8 +28,6 @@

namespace node {

extern bool no_deprecation;

#ifdef _WIN32
// emulate snprintf() on windows, _snprintf() doesn't zero-terminate the buffer
// on overflow...
Expand Down

0 comments on commit 8988af5

Please sign in to comment.