kerneltest/e32test/dll/t_ver1.cpp
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32test\dll\t_ver1.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include "t_ver.h"
       
    19 
       
    20 TInt Global = 10;
       
    21 
       
    22 EXPORT_C TInt Export1()
       
    23 	{
       
    24 	return 1;
       
    25 	}
       
    26 
       
    27 EXPORT_C TInt Export2()
       
    28 	{
       
    29 	return Global;
       
    30 	}
       
    31 
       
    32 EXPORT_C TInt Export3()
       
    33 	{
       
    34 	return ++Global;
       
    35 	}
       
    36 
       
    37 #ifdef __INCLUDE_EXPORT_4__
       
    38 EXPORT_C TInt Export4()
       
    39 	{
       
    40 	return Global--;
       
    41 	}
       
    42 #endif
       
    43 
       
    44 #ifdef __INCLUDE_EXPORT_5__
       
    45 EXPORT_C TInt Export5(TInt a)
       
    46 	{
       
    47 	TInt r = Global;
       
    48 	Global += a;
       
    49 	return r;
       
    50 	}
       
    51 #endif
       
    52 
       
    53 #ifdef __INCLUDE_EXPORT_6__
       
    54 EXPORT_C TInt Export6(TInt a)
       
    55 	{
       
    56 	TInt r = Global;
       
    57 	Global = a;
       
    58 	return r;
       
    59 	}
       
    60 #endif
       
    61 
       
    62 
       
    63 
       
    64