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