Changeset 12512 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Jan 31, 2006, 10:24:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r12489 r12512 86 86 // ------------------------------ Node ----------------------------------------- 87 87 88 89 #ifndef NDEBUG 90 struct NodeCounter { 91 static int count; 92 ~NodeCounter() { if (count != 0) fprintf(stderr, "LEAK: %d KJS::Node\n", count); } 93 }; 94 int NodeCounter::count = 0; 95 static NodeCounter nodeImplCounter; 96 #endif NDEBUG 97 98 88 99 Node::Node() 89 100 { 101 #ifndef NDEBUG 102 ++NodeCounter::count; 103 #endif 90 104 line = Lexer::curr()->lineNo(); 91 105 sourceURL = Lexer::curr()->sourceURL(); … … 96 110 Node::~Node() 97 111 { 112 #ifndef NDEBUG 113 --NodeCounter::count; 114 #endif 98 115 } 99 116
Note:
See TracChangeset
for help on using the changeset viewer.