2007-01-26 02:55:06 +01:00
|
|
|
/**
|
|
|
|
* ================================================================
|
2007-01-26 03:50:48 +01:00
|
|
|
* SourcePawn, Copyright (C) 2004-2007 AlliedModders LLC.
|
|
|
|
* All rights reserved.
|
2007-01-26 02:55:06 +01:00
|
|
|
* ================================================================
|
|
|
|
*
|
2007-01-26 05:35:08 +01:00
|
|
|
* This file is part of the SourceMod/SourcePawn SDK. This file may only be
|
|
|
|
* used or modified under the Terms and Conditions of its License Agreement,
|
|
|
|
* which is found in public/licenses/LICENSE.txt. As of this notice, derivative
|
|
|
|
* works must be licensed under the GNU General Public License (version 2 or
|
|
|
|
* greater). A copy of the GPL is included under public/licenses/GPL.txt.
|
|
|
|
*
|
|
|
|
* To view the latest information, see: http://www.sourcemod.net/license.php
|
2007-01-26 02:55:06 +01:00
|
|
|
*
|
|
|
|
* Version: $Id$
|
|
|
|
*/
|
|
|
|
|
2007-01-19 06:33:04 +01:00
|
|
|
#ifndef _INCLUDE_SOURCEPAWN_VM_BASE_H_
|
|
|
|
#define _INCLUDE_SOURCEPAWN_VM_BASE_H_
|
|
|
|
|
2007-01-26 02:55:06 +01:00
|
|
|
/**
|
|
|
|
* @file sp_vm_base.h
|
|
|
|
* @brief Contains JIT export/linkage macros.
|
|
|
|
*/
|
|
|
|
|
2007-01-19 06:33:04 +01:00
|
|
|
#include <sp_vm_api.h>
|
|
|
|
|
|
|
|
/* :TODO: rename this to sp_vm_linkage.h */
|
|
|
|
|
|
|
|
#if defined WIN32
|
|
|
|
#define EXPORT_LINK extern "C" __declspec(dllexport)
|
2007-01-25 10:19:38 +01:00
|
|
|
#elif defined __GNUC__
|
2007-01-19 06:33:04 +01:00
|
|
|
#define EXPORT_LINK extern "C" __attribute__((visibility("default")))
|
|
|
|
#endif
|
|
|
|
|
2007-01-26 02:55:06 +01:00
|
|
|
/** No longer used */
|
2007-01-19 06:33:04 +01:00
|
|
|
typedef SourcePawn::IVirtualMachine *(*SP_GETVM_FUNC)(SourcePawn::ISourcePawnEngine *);
|
|
|
|
|
|
|
|
#endif //_INCLUDE_SOURCEPAWN_VM_BASE_H_
|
2007-01-25 10:19:38 +01:00
|
|
|
|