diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-05-27 23:31:31 +0200 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-05-30 11:45:37 +0100 |
commit | 820aaf5b3d2728d900ba0ff8903d343840766912 (patch) | |
tree | 7d92e15e13be35090b64746efe5e05fc9e3aa735 /src/node_v8.cc | |
parent | c7b02034ef80313564c50c59c63a5b640c24e234 (diff) | |
download | node-new-820aaf5b3d2728d900ba0ff8903d343840766912.tar.gz |
src: replace CONTAINER_OF with type-safe function
Replace the CONTAINER_OF macro with a template function that is as
type-safe as a reinterpret_cast<> of an arbitrary pointer can be made.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'src/node_v8.cc')
-rw-r--r-- | src/node_v8.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_v8.cc b/src/node_v8.cc index 6652f6176a..b71b2a384d 100644 --- a/src/node_v8.cc +++ b/src/node_v8.cc @@ -83,7 +83,7 @@ void Environment::IsolateData::AfterGarbageCollection(GCType type, q = QUEUE_HEAD(&queue); QUEUE_REMOVE(q); QUEUE_INSERT_TAIL(&gc_tracker_queue_, q); - Environment* env = CONTAINER_OF(q, Environment, gc_tracker_queue_); + Environment* env = ContainerOf(&Environment::gc_tracker_queue_, q); env->AfterGarbageCollectionCallback(&gc_info_before_, &gc_info_after_); } } |