internal_raw_debug.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 #ifndef ICL_CORE_INTERNAL_RAW_DEBUG_H_INCLUDED
26 #define ICL_CORE_INTERNAL_RAW_DEBUG_H_INCLUDED
27 
28 #ifdef _SYSTEM_LXRT_
29 # include <rtai_lxrt.h>
30 #else
31 # include <stdio.h>
32 #endif
33 
34 /*
35  * This macro is only intended to be used within the implementation of icl_core and icl_core_logging.
36  * DON'T USE IT IN YOUR OWN CODE! Use icl_core_logging instead!
37  */
38 #ifdef _SYSTEM_LXRT_
39 # define PRINTF(arg...) do { if (icl_core::os::IsThisHRT()) { ::rt_printk(arg); } else { ::printf(arg); }} while (false)
40 #else
41 # define PRINTF ::printf
42 #endif
43 
44 #endif


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58