From 2e333dbffcceabb0dffd97100ce5a75a32f494a0 Mon Sep 17 00:00:00 2001 From: Joan Sola <jsola@iri.upc.edu> Date: Sun, 23 Jan 2022 17:06:42 +0100 Subject: [PATCH] remove processor_logging --- include/core/processor/processor_logging.h | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 include/core/processor/processor_logging.h diff --git a/include/core/processor/processor_logging.h b/include/core/processor/processor_logging.h deleted file mode 100644 index 52eab893a..000000000 --- a/include/core/processor/processor_logging.h +++ /dev/null @@ -1,52 +0,0 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Solà Ortega (jsola@iri.upc.edu) -// All rights reserved. -// -// This file is part of WOLF -// WOLF is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file processor_logging.h - * - * Created on: Oct 5, 2017 - * \author: Jeremie Deray - */ - -#ifndef _WOLF_PROCESSOR_LOGGING_H_ -#define _WOLF_PROCESSOR_LOGGING_H_ - -/// @brief un-comment for IDE highlights. - - -#define __INTERNAL_WOLF_ASSERT_PROCESSOR \ - static_assert(std::is_base_of<ProcessorBase, \ - typename std::remove_pointer<decltype(this)>::type>::value, \ - "This macro can be used only within the body of a " \ - "non-static " \ - "ProcessorBase (and derived) function !"); - -#define WOLF_PROCESSOR_INFO(...) __INTERNAL_WOLF_ASSERT_PROCESSOR WOLF_INFO_NAMED(getType(), __VA_ARGS__); -#define WOLF_PROCESSOR_WARN(...) __INTERNAL_WOLF_ASSERT_PROCESSOR WOLF_WARN_NAMED(getType(), __VA_ARGS__); -#define WOLF_PROCESSOR_ERROR(...) __INTERNAL_WOLF_ASSERT_PROCESSOR WOLF_ERROR_NAMED(getType(), __VA_ARGS__); -#define WOLF_PROCESSOR_DEBUG(...) __INTERNAL_WOLF_ASSERT_PROCESSOR WOLF_DEBUG_NAMED(getType(), __VA_ARGS__); - -#define WOLF_PROCESSOR_INFO_COND(cond, ...) __INTERNAL_WOLF_ASSERT_PROCESSOR WOLF_INFO_NAMED_COND(getType(), cond, __VA_ARGS__); -#define WOLF_PROCESSOR_WARN_COND(cond, ...) __INTERNAL_WOLF_ASSERT_PROCESSOR WOLF_WARN_NAMED_COND(getType(), cond, __VA_ARGS__); -#define WOLF_PROCESSOR_ERROR_COND(cond, ...) __INTERNAL_WOLF_ASSERT_PROCESSOR WOLF_ERROR_NAMED_COND(getType(), cond, __VA_ARGS__); -#define WOLF_PROCESSOR_DEBUG_COND(cond, ...) __INTERNAL_WOLF_ASSERT_PROCESSOR WOLF_DEBUG_NAMED_COND(getType(), cond, __VA_ARGS__); - -#endif /* _WOLF_PROCESSOR_LOGGING_H_ */ -- GitLab