Skip to content

Commit

Permalink
Introduce namespace Nan
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Jul 4, 2015
1 parent 5d31159 commit 67ed1b1
Show file tree
Hide file tree
Showing 48 changed files with 306 additions and 373 deletions.
2 changes: 2 additions & 0 deletions examples/async_pi_estimate/addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "sync.h" // NOLINT(build/include)
#include "async.h" // NOLINT(build/include)

using namespace Nan; // NOLINT(build/namespaces)

using v8::FunctionTemplate;
using v8::Handle;
using v8::Object;
Expand Down
2 changes: 2 additions & 0 deletions examples/async_pi_estimate/async.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "pi_est.h" // NOLINT(build/include)
#include "async.h" // NOLINT(build/include)

using namespace Nan; // NOLINT(build/namespaces)

using v8::Function;
using v8::Local;
using v8::Null;
Expand Down
2 changes: 2 additions & 0 deletions examples/async_pi_estimate/async.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include <nan.h>

using namespace Nan; // NOLINT(build/namespaces)

NAN_METHOD(CalculateAsync);

#endif // EXAMPLES_ASYNC_PI_ESTIMATE_ASYNC_H_
2 changes: 2 additions & 0 deletions examples/async_pi_estimate/sync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "pi_est.h" // NOLINT(build/include)
#include "sync.h" // NOLINT(build/include)

using namespace Nan; // NOLINT(build/namespaces)

using v8::Number;

// Simple synchronous access to the `Estimate()` function
Expand Down
2 changes: 2 additions & 0 deletions examples/async_pi_estimate/sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include <nan.h>

using namespace Nan; // NOLINT(build/namespaces)

NAN_METHOD(CalculateSync);

#endif // EXAMPLES_ASYNC_PI_ESTIMATE_SYNC_H_

0 comments on commit 67ed1b1

Please sign in to comment.