forked from Imagelibrary/rtems
confdefs: Fix extensions.h
Resurrect proper file comment. Order copyrights according to template. Remove white space at the end of line. Do error checks early. Define objects under optional extern "C". Update #5047.
This commit is contained in:
committed by
Amar Takhar
parent
d670dafaa4
commit
5b1c17f85a
@@ -1,12 +1,17 @@
|
||||
/* SPDX-License-Identifier: BSD-2-Clause */
|
||||
|
||||
/**
|
||||
* @brief User Extensions Configuration Options Evaluator
|
||||
* @file
|
||||
*
|
||||
* @ingroup RTEMSImplApplConfig
|
||||
*
|
||||
* @brief This header file evaluates configuration options related to the user
|
||||
* extensions configuration.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2020 embedded brains GmbH & Co. KG
|
||||
* Copyright (C) 2024 Mohamed Hassan <muhammad.hamdy.hassan@gmail.com>
|
||||
* Copyright (C) 2020 embedded brains GmbH & Co. KG
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -85,26 +90,14 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIGURE_STACK_CHECKER_ENABLED) && defined(CONFIGURE_STACK_CHECKER_REPORTER)
|
||||
#error "Stack checker is disabled but a custom reporter is configured"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIGURE_STACK_CHECKER_ENABLED
|
||||
#include <rtems/stackchk.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIGURE_STACK_CHECKER_ENABLED
|
||||
#ifdef CONFIGURE_STACK_CHECKER_REPORTER
|
||||
const Stack_checker_Reporter_handler Stack_checker_Reporter =
|
||||
CONFIGURE_STACK_CHECKER_REPORTER;
|
||||
|
||||
#else
|
||||
const Stack_checker_Reporter_handler Stack_checker_Reporter =
|
||||
rtems_stack_checker_reporter_quiet;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIGURE_STACK_CHECKER_ENABLED) && defined(CONFIGURE_STACK_CHECKER_REPORTER)
|
||||
#error "Stack checker is disabled but a custom reporter is configured"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIGURE_EXCEPTION_TO_SIGNAL_MAPPING
|
||||
#include <rtems/score/exception.h>
|
||||
#endif
|
||||
@@ -218,6 +211,16 @@ extern "C" {
|
||||
);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIGURE_STACK_CHECKER_ENABLED
|
||||
#ifdef CONFIGURE_STACK_CHECKER_REPORTER
|
||||
const Stack_checker_Reporter_handler Stack_checker_Reporter =
|
||||
CONFIGURE_STACK_CHECKER_REPORTER;
|
||||
#else
|
||||
const Stack_checker_Reporter_handler Stack_checker_Reporter =
|
||||
rtems_stack_checker_reporter_quiet;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user