2006-09-20 03:59:56 +02:00
|
|
|
#ifndef _INCLUDE_SOURCEPAWN_VM_BASE_H_
|
|
|
|
#define _INCLUDE_SOURCEPAWN_VM_BASE_H_
|
|
|
|
|
|
|
|
#include <sp_vm_api.h>
|
|
|
|
|
2006-12-31 23:33:47 +01:00
|
|
|
/* :TODO: rename this to sp_vm_linkage.h */
|
|
|
|
|
2006-09-20 03:59:56 +02:00
|
|
|
#if defined WIN32
|
|
|
|
#define EXPORT_LINK extern "C" __declspec(dllexport)
|
|
|
|
#else if defined __GNUC__
|
|
|
|
#define EXPORT_LINK extern "C" __attribute__((visibility("default")))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef SourcePawn::IVirtualMachine *(*SP_GETVM_FUNC)(SourcePawn::ISourcePawnEngine *);
|
|
|
|
|
|
|
|
#endif //_INCLUDE_SOURCEPAWN_VM_BASE_H_
|