public/sourcepawn/sp_vm_base.h
author David Anderson <dvander@alliedmods.net>
Fri Feb 16 03:47:10 2007 +0000 (2007-02-16)
changeset 501 e209a7296936
parent 379 b3c99c22ba80
child 653 ef60870067ff
permissions -rw-r--r--
removed this potential feature, not useful enough
     1 /**
     2  * ================================================================
     3  * SourcePawn, Copyright (C) 2004-2007 AlliedModders LLC. 
     4  * All rights reserved.
     5  * ================================================================
     6  *
     7  *  This file is part of the SourceMod/SourcePawn SDK.  This file may only be 
     8  * used or modified under the Terms and Conditions of its License Agreement, 
     9  * which is found in public/licenses/LICENSE.txt.  As of this notice, derivative 
    10  * works must be licensed under the GNU General Public License (version 2 or 
    11  * greater).  A copy of the GPL is included under public/licenses/GPL.txt.
    12  * 
    13  * To view the latest information, see: http://www.sourcemod.net/license.php
    14  *
    15  * Version: $Id$
    16  */
    17 
    18 #ifndef _INCLUDE_SOURCEPAWN_VM_BASE_H_
    19 #define _INCLUDE_SOURCEPAWN_VM_BASE_H_
    20 
    21 /**
    22  * @file sp_vm_base.h
    23  * @brief Contains JIT export/linkage macros.
    24  */
    25 
    26 #include <sp_vm_api.h>
    27 
    28 /* :TODO: rename this to sp_vm_linkage.h */
    29 
    30 #if defined WIN32
    31 #define EXPORT_LINK		extern "C" __declspec(dllexport)
    32 #elif defined __GNUC__
    33 #define EXPORT_LINK		extern "C" __attribute__((visibility("default")))
    34 #endif
    35 
    36 /** No longer used */
    37 typedef SourcePawn::IVirtualMachine *(*SP_GETVM_FUNC)(SourcePawn::ISourcePawnEngine *);
    38 
    39 #endif //_INCLUDE_SOURCEPAWN_VM_BASE_H_
    40