00001 #ifndef _INCLUDE_SOURCEPAWN_VM_BASE_H_ 00002 #define _INCLUDE_SOURCEPAWN_VM_BASE_H_ 00003 00004 #include <sp_vm_api.h> 00005 00006 /* :TODO: rename this to sp_vm_linkage.h */ 00007 00008 #if defined WIN32 00009 #define EXPORT_LINK extern "C" __declspec(dllexport) 00010 #else if defined __GNUC__ 00011 #define EXPORT_LINK extern "C" __attribute__((visibility("default"))) 00012 #endif 00013 00014 typedef SourcePawn::IVirtualMachine *(*SP_GETVM_FUNC)(SourcePawn::ISourcePawnEngine *); 00015 00016 #endif //_INCLUDE_SOURCEPAWN_VM_BASE_H_