trace.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 
7 // Define our own logging macro for debugging to stdout
8 // Can possibly turn it on automatically based on the Catch options supplied
9 // on the command-line, with a custom main():
10 // Catch::Session catch_session;
11 // int main (int argc, char * const argv[]) {
12 // return catch_session.run( argc, argv );
13 // }
14 // #define TRACE(X) if( catch_session.configData().verbosity == ... ) {}
15 // With Catch2, we can turn this into SCOPED_INFO.
16 #define TRACE(X) std::cout << (std::string)( librealsense::to_string() << X ) << std::endl


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:12