2007-01-19 06:33:04 +01:00
|
|
|
#ifndef _INCLUDE_SOURCEPAWN_VM_BASE_H_
|
|
|
|
#define _INCLUDE_SOURCEPAWN_VM_BASE_H_
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
typedef SourcePawn::IVirtualMachine *(*SP_GETVM_FUNC)(SourcePawn::ISourcePawnEngine *);
|
|
|
|
|
|
|
|
#endif //_INCLUDE_SOURCEPAWN_VM_BASE_H_
|
2007-01-25 10:19:38 +01:00
|
|
|
|