Skip to content

Commit cb2b96d

Browse files
committed
feat(forest): remove macro impl
1 parent 2f7db33 commit cb2b96d

File tree

4 files changed

+1261
-224
lines changed

4 files changed

+1261
-224
lines changed

Cargo.lock

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

float-pigment-forest/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ build-cpp-header = ["cbindgen", "fs_extra"]
3939
float-pigment-css = { workspace = true }
4040
float-pigment-layout = { workspace = true }
4141
euclid = "0.22"
42-
concat-idents = "1.1.3"
4342
cbindgen = { version = "0.27", optional = true }
4443
lru = "0.7.8"
4544
float-pigment-forest-macro = { workspace = true }

float-pigment-forest/float_pigment_layout.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ enum class MeasureMode {
2020
AtMost,
2121
};
2222

23-
struct NodePtr {
24-
void *ptr;
25-
};
23+
using RawMutPtr = void*;
24+
25+
using NodePtr = RawMutPtr;
2626

2727
using Baseline = float;
2828

@@ -116,7 +116,7 @@ void *NodeGetExternalHost(NodePtr node);
116116

117117
NodePtr NodeGetParent(NodePtr node);
118118

119-
void NodeHasMeasureFunc(NodePtr node);
119+
bool NodeHasMeasureFunc(NodePtr node);
120120

121121
void NodeInsertBefore(NodePtr node, NodePtr child, NodePtr pivot);
122122

0 commit comments

Comments
 (0)