VirtualBox

source: vbox/trunk/include/iprt/nocrt/setjmp.h@ 4168

Last change on this file since 4168 was 4168, checked in by vboxsync, 17 years ago

eol-style native

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1/** @file
2 * innotek Portable Runtime / No-CRT - Our own setjmp header.
3 */
4
5/*
6 * Copyright (C) 2006-2007 innotek GmbH
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License as published by the Free Software Foundation,
12 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13 * distribution. VirtualBox OSE is distributed in the hope that it will
14 * be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16
17#ifndef ___iprt_nocrt_setjmp_h
18#define ___iprt_nocrt_setjmp_h
19
20#include <iprt/types.h>
21
22__BEGIN_DECLS
23
24#ifdef RT_ARCH_AMD64
25typedef uint64_t RT_NOCRT(jmp_buf)[8];
26#else
27typedef uint32_t RT_NOCRT(jmp_buf)[6+2];
28#endif
29
30extern int RT_NOCRT(setjmp)(RT_NOCRT(jmp_buf));
31extern int RT_NOCRT(longjmp)(RT_NOCRT(jmp_buf), int);
32
33#ifndef RT_WITHOUT_NOCRT_WRAPPERS
34# define jmp_buf RT_NOCRT(jmp_buf)
35# define setjmp RT_NOCRT(setjmp)
36# define longjmp RT_NOCRT(longjmp)
37#endif
38
39__END_DECLS
40
41#endif
42
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette