From f45323473c56b52e480c223b61ee65aabd40c76a Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Mon, 19 May 2014 19:53:33 +0200 Subject: [PATCH] Node size info at compile-time --- source/dyaml/node.d | 1 + 1 file changed, 1 insertion(+) diff --git a/source/dyaml/node.d b/source/dyaml/node.d index 286d4ec..f3b8ba0 100644 --- a/source/dyaml/node.d +++ b/source/dyaml/node.d @@ -222,6 +222,7 @@ struct Node //Node collection style. Used to remember style this node was loaded with. CollectionStyle collectionStyle = CollectionStyle.Invalid; + pragma(msg, "Node is %s bytes long".format(Node.sizeof)); static assert(Value.sizeof <= 24, "Unexpected YAML value size"); static assert(Node.sizeof <= 48, "Unexpected YAML node size");