distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
fatalErrorHandler.h File Reference

fatalErrorHandler() header More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


void fatalErrorHandler (const char *file, int line, const char *function, const char *message)
 Handler of fatal errors. More...

Detailed Description

fatalErrorHandler() header

Copyright (C) 2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Function Documentation

◆ fatalErrorHandler()

void fatalErrorHandler ( const char *  file,
int  line,
const char *  function,
const char *  message 

Handler of fatal errors.

This function is called via FATAL_ERROR() macro, which is used to supply some of the arguments. It calls weak fatalErrorHook() (only if it is defined) and halts the system by calling abort() with masked interrupts.

[in]fileis a null-terminated string with the name of file in which fatal error was detected
[in]lineis a line number at which fatal error was detected
[in]functionis a null-terminated string with function in which fatal error was detected
[in]messageis a null-terminated string with the message of fatal error
Here is the call graph for this function: