Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


information request api for the host - gives a more detailed view of VM and vcore...
[palacios.git] / misc / decoder_test / test.h
1 #ifndef __TEST_H__
2 #define __TEST_H__
3 #include <stdlib.h>
4 #include <stdio.h>
5 #include "ktypes.h"
6
7 #define PrintDebug printf
8 #define PrintError printf
9
10 #define V3_ASSERT(x)                                                    \
11   do {                                                                  \
12     if (!(x)) {                                                         \
13       PrintDebug("Failed assertion in %s: %s at %s, line %d, RA=%lx\n", \
14                  __func__, #x, __FILE__, __LINE__,                      \
15                  (ulong_t) __builtin_return_address(0));                \
16       while(1);                                                         \
17     }                                                                   \
18   } while(0)                                                            \
19     
20
21
22 #endif
23