]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/Main/longjmp.c
Fix a bug about the iSCSI DHCP dependency issue.
[mirror_edk2.git] / StdLib / LibC / Main / longjmp.c
CommitLineData
2aa62f2b 1/** @file\r
2 The longjmp function.\r
3 The C standard requires that longjmp be a function and not a macro.\r
4\r
5 Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
6 This program and the accompanying materials are licensed and made available under\r
7 the terms and conditions of the BSD License that accompanies this distribution.\r
8 The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13**/\r
14#include <Library/BaseLib.h>\r
15#include <setjmp.h>\r
16\r
17void longjmp(jmp_buf env, int val)\r
18{\r
19 LongJump(env, (UINTN)((val == 0) ? 1 : val));\r
20}\r