kernel/eka/compsupp/rvct2_0/cppinit.h
changeset 9 96e5fb8b040d
child 10 36bfc973b146
equal deleted inserted replaced
-1:000000000000 9:96e5fb8b040d
       
     1 /*
       
     2 * Copyright (c) 2002-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  @file
       
    21  @internalComponent
       
    22 */
       
    23 
       
    24 #ifndef _CPPINIT_H_
       
    25 #define _CPPINIT_H_
       
    26 extern "C" {
       
    27 
       
    28 // Doing it like this means no space is taken by the symbols
       
    29 #define NUKE_SYMBOL(sig) __asm void sig {}
       
    30 typedef void (*PFV)();
       
    31 typedef void (DTOR)(void *);
       
    32 #define RELOCATE(loc, type) (type)((int)loc + (int)*loc)
       
    33 
       
    34 typedef struct dtd 
       
    35 { 
       
    36 //  dtd * prev;
       
    37   void * obj;
       
    38   DTOR * dtor; 
       
    39 } dtd;
       
    40 
       
    41 //extern void run_static_ctors (void);
       
    42 extern void run_static_dtors (void);
       
    43 
       
    44 }
       
    45 
       
    46 #endif