Line data Source code
1 : // This file (example_obj.cc) was created by Ron Rechenmacher <ron@fnal.gov> on
2 : // Mar 12, 2014. "TERMS AND CONDITIONS" governing this file are in the README
3 : // or COPYING file. If you do not have such a file, one can be obtained by
4 : // contacting Ron or Fermi Lab in Batavia IL, 60510, phone: 630-840-3000.
5 : // $RCSfile: example_sub3.cc,v $
6 : // rev="$Revision: 1784 $$Date: 2026-10-09 13:51:46 -0500 (Fri, 09 Oct 2026) $";
7 :
8 : #include "TRACE/trace.h"
9 : #include <libgen.h> // basename
10 : #define TRACE_NAME basename((char *)__FILE__) // NOLINT
11 :
12 : void example_sub4(void);
13 :
14 0 : void example_sub3(void)
15 : {
16 0 : int mode= (int)TRACE_CNTL("mode"); // NOLINT
17 0 : TRACE(2, "hello from example_sub3 mode=%d before calling sub4", mode);
18 0 : example_sub4();
19 0 : TLOG(2, TRACE_NAME) << "hello from example_sub3 after calling sub4";
20 0 : }
|