Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
f8627553
Commit
f8627553
authored
Apr 18, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keeping track of object destructions.
parent
3aa81584
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
1 deletions
+9
-1
basic.scss
basic.scss
+1
-0
interpolation.scss
interpolation.scss
+2
-1
node.cpp
node.cpp
+1
-0
node.hpp
node.hpp
+4
-0
sass_interface.cpp
sass_interface.cpp
+1
-0
No files found.
basic.scss
View file @
f8627553
...
...
@@ -104,6 +104,7 @@ div {
b
:
hey
or
ho
or
false
or
hoo
;
c
:
false
and
hey
and
ho
;
d
:
true
and
false
and
(
1
/
0
);
e
:
(()()()()()()()()
25
()()()()()()()()()()()()()()()()()()()()()()());
/* e: 1 < 3 and 3 < 5;
f: (1 2 3) and (4 5 6);*/
...
...
interpolation.scss
View file @
f8627553
...
...
@@ -2,5 +2,5 @@ $x: bar;
div
{
a
:
blah
foo
#{
$x
}
;
b
:
1
+
123
#{
4
+
5
}
;
b
:
1
+
123
#{
a
b
@
fuzzle
}
;
}
\ No newline at end of file
node.cpp
View file @
f8627553
...
...
@@ -14,6 +14,7 @@ using std::endl;
namespace
Sass
{
size_t
Node
::
allocations
=
0
;
size_t
Node
::
destructed
=
0
;
Node
Node
::
clone
(
vector
<
vector
<
Node
>*>&
registry
)
const
{
...
...
node.hpp
View file @
f8627553
...
...
@@ -113,6 +113,7 @@ namespace Sass {
const
char
*
file_name
;
static
size_t
allocations
;
static
size_t
destructed
;
void
clear
()
{
...
...
@@ -252,5 +253,7 @@ namespace Sass {
has_children
=
true
;
++
allocations
;
}
~
Node
()
{
++
destructed
;
}
};
}
\ No newline at end of file
sass_interface.cpp
View file @
f8627553
...
...
@@ -45,6 +45,7 @@ extern "C" {
cerr
<<
"EMITTED"
<<
endl
;
cerr
<<
"Allocations:
\t
"
<<
Node
::
allocations
<<
endl
;
cerr
<<
"Destructions:
\t
"
<<
Node
::
destructed
<<
endl
;
cerr
<<
"Registry size:
\t
"
<<
doc
.
context
.
registry
.
size
()
<<
endl
;
int
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment