Mark3 Realtime Kernel
kerneldebug.h
Go to the documentation of this file.
1 /*===========================================================================
2  _____ _____ _____ _____
3  ___| _|__ __|_ |__ __|__ |__ __| __ |__ ______
4 | \ / | || \ || | || |/ / ||___ |
5 | \/ | || \ || \ || \ ||___ |
6 |__/\__/|__|_||__|\__\ __||__|\__\ __||__|\__\ __||______|
7  |_____| |_____| |_____| |_____|
8 
9 --[Mark3 Realtime Platform]--------------------------------------------------
10 
11 Copyright (c) 2012 - 2019 m0slevin, all rights reserved.
12 See license.txt for more information
13 ===========================================================================*/
19 #pragma once
20 
21 #include "mark3cfg.h"
22 #include "paniccodes.h"
23 #include "kernel.h"
24 
25 //---------------------------------------------------------------------------
26 namespace Mark3
27 {
28 #if KERNEL_DEBUG
29 #define KERNEL_ASSERT(x) \
30  do { \
31  if ((x) == 0) { \
32  Kernel::Panic(PANIC_ASSERT_FAILED); \
33  } \
34  } while (0);
35 #else
36 #define KERNEL_ASSERT(x)
37 #endif
38 
39 } // namespace Mark3
Defines the reason codes thrown when a kernel panic occurs.
Kernel initialization and startup class.
Definition: atomic.cpp:23
Mark3 Kernel Configuration This file is used to configure the kernel for your specific application in...