]>
Commit | Line | Data |
---|---|---|
2aa62f2b | 1 | /**\r |
2 | Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r | |
3 | This program and the accompanying materials are licensed and made available under\r | |
4 | the terms and conditions of the BSD License that accompanies this distribution.\r | |
5 | The full text of the license may be found at\r | |
6 | http://opensource.org/licenses/bsd-license.php.\r | |
7 | \r | |
8 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
9 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
10 | **/\r | |
11 | //#include <Uefi.h>\r | |
12 | //#include <Library/UefiLib.h>\r | |
13 | \r | |
14 | #include <LibConfig.h>\r | |
15 | #include <sys/EfiCdefs.h>\r | |
16 | \r | |
17 | #include <stdio.h>\r | |
18 | #include <stdlib.h>\r | |
19 | \r | |
20 | void\r | |
2aa62f2b | 21 | __assert(const char *func, const char *file, int line, const char *failedexpr)\r |
22 | {\r | |
23 | if (func == NULL)\r | |
24 | printf("Assertion failed: (%s), file %s, line %d.\n",\r | |
25 | failedexpr, file, line);\r | |
26 | else\r | |
27 | printf("Assertion failed: (%s), function %s, file %s, line %d.\n",\r | |
28 | failedexpr, func, file, line);\r | |
29 | abort();\r | |
30 | /* NOTREACHED */\r | |
31 | }\r |