xo-tokenizer2/example/ex1/ex1.cpp

22 lines
294 B
C++

/* 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 */