Add 'xo-indentlog/' from commit 'd43c4af0b4'

git-subtree-dir: xo-indentlog
git-subtree-mainline: 1c3f033933
git-subtree-split: d43c4af0b4
This commit is contained in:
Roland Conybeare 2025-05-10 17:00:33 -05:00
commit 341fcfd1c7
64 changed files with 4682 additions and 0 deletions

View file

@ -0,0 +1,22 @@
/* ex1.cpp */
#include "xo/indentlog/scope.hpp"
using namespace xo;
void inner(int x) {
scope log(XO_ENTER0(always), ":x ", x);
}
void outer(int y) {
scope log(XO_ENTER0(always), ":y ", y);
inner(2*y);
}
int
main(int argc, char ** argv) {
outer(123);
}
/* end ex1.cpp */