3 * ================================================================
4 * SourcePawn, Copyright (C) 2004-2007 AlliedModders LLC.
6 * ================================================================
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.
14 * To view the latest information, see: http://www.sourcemod.net/license.php
19 #ifndef _INCLUDE_SOURCEPAWN_VM_BASE_H_
20 #define _INCLUDE_SOURCEPAWN_VM_BASE_H_
24 * @brief Contains JIT export/linkage macros.
27 #include <sp_vm_api.h>
29 /* :TODO: rename this to sp_vm_linkage.h */
32 #define EXPORT_LINK extern "C" __declspec(dllexport)
33 #elif defined __GNUC__
34 #define EXPORT_LINK extern "C" __attribute__((visibility("default")))
38 typedef SourcePawn::IVirtualMachine *(*SP_GETVM_FUNC)(SourcePawn::ISourcePawnEngine *);
40 #endif //_INCLUDE_SOURCEPAWN_VM_BASE_H_