Update MentOs code to the latest development version.

This commit is contained in:
Enrico Fraccaroli
2021-10-04 11:44:02 +02:00
parent 6fd063984a
commit b01eccca2e
484 changed files with 42358 additions and 20285 deletions
+19
View File
@@ -0,0 +1,19 @@
/// MentOS, The Mentoring Operating system project
/// @file assert.c
/// @brief
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#include "assert.h"
#include "stdlib.h"
#include "stdio.h"
void __assert_fail(const char *assertion, const char *file, const char *function, unsigned int line)
{
printf("FILE: %s\n"
"FUNC: %s\n"
"LINE: %d\n\n"
"Assertion `%s` failed.\n",
file, (function ? function : "NO_FUN"), line, assertion);
abort();
}