26 #if defined(WIN32)||defined(_WIN32)||defined(_Windows)||defined(__CYGWIN__)
32 # define SHIORI_EXPORT extern "C"
34 # define SHIORI_EXPORT extern
36 # elif defined(__clang__)
39 # define SHIORI_EXPORT extern "C"
41 # define SHIORI_EXPORT extern
46 # define SHIORI_EXPORT extern "C" __declspec(dllexport)
48 # define SHIORI_EXPORT extern __declspec(dllexport)
51 # define SHIORI_CALL __cdecl
52 # define MEMORY_HANDLE HGLOBAL
54 # define SHIORI_MALLOC(len) ::GlobalAlloc(GMEM_FIXED, len)
55 # define SHIORI_FREE(ptr) ::GlobalFree((HGLOBAL)ptr)
57 # define SHIORI_MALLOC(len) GlobalAlloc(GMEM_FIXED, len)
58 # define SHIORI_FREE(ptr) GlobalFree((HGLOBAL)ptr)
63 # define SHIORI_EXPORT extern "C"
65 # define SHIORI_EXPORT extern
68 # define MEMORY_HANDLE char *
69 # define SHIORI_MALLOC(len) malloc(len)
70 # define SHIORI_FREE(ptr) free((void *)ptr)
86 SHIORI_EXPORT BOOL SHIORI_CALL
load(
const MEMORY_HANDLE h,
long len);
93 SHIORI_EXPORT BOOL SHIORI_CALL
unload(
void);
104 SHIORI_EXPORT MEMORY_HANDLE SHIORI_CALL
request(
const MEMORY_HANDLE h,
long *len);
SHIORI_EXPORT BOOL SHIORI_CALL unload(void)
モジュール切り離し直前に呼ばれる
Definition: shiori.c:71
SHIORI_EXPORT BOOL SHIORI_CALL load(const MEMORY_HANDLE h, long len)
モジュール読み込み直後に呼ばれる
Definition: shiori.c:16
SHIORI_EXPORT MEMORY_HANDLE SHIORI_CALL request(const MEMORY_HANDLE h, long *len)
偽AIリクエスト
Definition: shiori.c:25