From 5cf8ecfc25d56e733e2c803942f1bee0378e6639 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Jul 2011 15:23:19 +0200 Subject: Add support for optional tree node value in pragmas --- odb/pragma.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'odb/pragma.hxx') diff --git a/odb/pragma.hxx b/odb/pragma.hxx index f5714eb..d8c4ab5 100644 --- a/odb/pragma.hxx +++ b/odb/pragma.hxx @@ -15,8 +15,8 @@ struct pragma { - pragma (std::string const& n, std::string const& v, location_t l) - : name (n), value (v), loc (l) + pragma (std::string const& n, std::string const& v, tree tn, location_t l) + : name (n), value (v), node (tn), loc (l) { } @@ -28,6 +28,7 @@ struct pragma std::string name; std::string value; + tree node; location_t loc; }; -- cgit v1.1