Browse Source

Externalize node::no_deprecation

v0.9.1-release
isaacs 13 years ago
parent
commit
8988af58f4
  1. 2
      src/ev-emul.h
  2. 2
      src/node.h
  3. 2
      src/node_internals.h

2
src/ev-emul.h

@ -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); \
} \

2
src/node.h

@ -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[]);

2
src/node_internals.h

@ -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...

Loading…
Cancel
Save