blob: 73e1489865d3a40f93c2756485faff40f2b9d5ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "node_external_reference.h"
#include <cinttypes>
#include <vector>
#include "util.h"
namespace node {
const std::vector<intptr_t>& ExternalReferenceRegistry::external_references() {
CHECK(!is_finalized_);
external_references_.push_back(reinterpret_cast<intptr_t>(nullptr));
is_finalized_ = true;
return external_references_;
}
ExternalReferenceRegistry::ExternalReferenceRegistry() {
#define V(modname) _register_external_reference_##modname(this);
EXTERNAL_REFERENCE_BINDING_LIST(V)
#undef V
// TODO(joyeecheung): collect more external references here.
}
} // namespace node
|