aboutsummaryrefslogtreecommitdiff
path: root/build2/operation.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/operation.hxx')
-rw-r--r--build2/operation.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/build2/operation.hxx b/build2/operation.hxx
index 8c9818e..e79a57c 100644
--- a/build2/operation.hxx
+++ b/build2/operation.hxx
@@ -70,6 +70,12 @@ namespace build2
bool inner () const {return outer_id == 0;}
bool outer () const {return outer_id != 0;}
+ action
+ inner_action () const
+ {
+ return action (meta_operation (), operation ());
+ }
+
// Implicit conversion operator to action_id for the switch() statement,
// etc. Most places only care about the inner operation.
//