summaryrefslogtreecommitdiff
path: root/src/base_object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/base_object.h')
-rw-r--r--src/base_object.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base_object.h b/src/base_object.h
index e0f3f27950..64a2371433 100644
--- a/src/base_object.h
+++ b/src/base_object.h
@@ -33,6 +33,11 @@ namespace node {
class Environment;
+#define ADD_MEMORY_INFO_NAME(name) \
+ std::string MemoryInfoName() const override { \
+ return #name; \
+ }
+
class BaseObject : public MemoryRetainer {
public:
// Associates this object with `object`. It uses the 0th internal field for