some wrap to cpp

This commit is contained in:
luoliwoshang
2025-06-11 21:02:32 +08:00
parent bdff346a20
commit e7e9530eb8
8 changed files with 22 additions and 5 deletions

View File

@@ -1,5 +1,9 @@
#include <ffi.h>
extern "C" {
void *llog_ffi_closure_alloc(void **code) {
return ffi_closure_alloc(sizeof(ffi_closure), code);
}
}

View File

@@ -10,7 +10,7 @@ import (
const (
LLGoPackage = "link: $(pkg-config --libs libffi); -lffi"
LLGoFiles = "$(pkg-config --cflags libffi): _wrap/libffi.c"
LLGoFiles = "$(pkg-config --cflags libffi): _wrap/libffi.cpp"
)
/*