genericopenlibs/cstdlib/LINC/SETJMP.H
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /*
       
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @publishedAll
       
    23  @released
       
    24 */
       
    25 
       
    26 #ifndef _SETJMP_H_
       
    27 #define _SETJMP_H_
       
    28 #ifdef __cplusplus
       
    29 extern "C" {
       
    30 #endif
       
    31 
       
    32 #include <_ansi.h>
       
    33 
       
    34 /** see MSVC 4.0 SETJMP.H & E32STD.H class TTrap
       
    35  */
       
    36 #define _JBLEN	16		
       
    37 #define _JBTYPE	unsigned long
       
    38 
       
    39 typedef	_JBTYPE jmp_buf[_JBLEN];
       
    40 
       
    41 IMPORT_C void longjmp(jmp_buf __jmpb, int __retval);
       
    42 IMPORT_C int setjmp(jmp_buf __jmpb);
       
    43 
       
    44 #ifdef __cplusplus
       
    45 }
       
    46 #endif
       
    47 #endif /* _SETJMP_H_ */
       
    48