You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// #elif defined(X86_64) || (defined (__x86_64__) && defined (X86_DARWIN))
// #elif defined(X86_WIN32)
// #else
FFI_FIRST_ABI = 0,
FFI_SYSV = 1,
FFI_THISCALL = 3,
FFI_FASTCALL = 4,
FFI_STDCALL = 5,
FFI_PASCAL = 6,
FFI_REGISTER = 7,
FFI_MS_CDECL = 8,
FFI_LAST_ABI = 9,
FFI_DEFAULT_ABI = FFI_SYSV;
// #endif
should be removed, as there platform specific, e.g., the comments still show that in C they were platform-specifically defined via #ifdef.
It seems the correct way to go is to use the already defined presets.ffi.FFI_DEFAULT_ABI() methods and friends, which are defined as native and supplied from somewhere else:
I'm not sure where the native things get their value from, but those have the right value for me.
(I noticed this, because in the current state they are easy to confuse, e.g, when your call the method FFI_DEFAULT_ABI() you get the right value, but when you access the field FFI_DEFAULT_ABI you get the wrong value, and an error later when you try to pass it to prepare. They are even easier to confuse in Scala, where syntactic sugar often allows one to shorten x.f() to x.f.)
The text was updated successfully, but these errors were encountered:
Instead of skipping lines by regex i would prefer to skip these by variable name; however it seems that's only possible with fields/methods; not enum variants, is it?
I don't think it's possible to skip individual enumerators at the moment, but it should be possible to skip whole enumerations. If you've tried something specific that doesn't work, please show me what you've tried exactly.
Hi, I am using
"org.bytedeco" % "libffi-platform" % "3.4.4-1.5.8"
(via Scala) on Linux.I think the enum values:
javacpp-presets/libffi/src/gen/java/org/bytedeco/libffi/global/ffi.java
Lines 85 to 103 in 86a78a6
#ifdef
.It seems the correct way to go is to use the already defined
presets.ffi.FFI_DEFAULT_ABI()
methods and friends, which are defined as native and supplied from somewhere else:javacpp-presets/libffi/src/main/java/org/bytedeco/libffi/presets/ffi.java
Lines 85 to 103 in 86a78a6
I'm not sure where the native things get their value from, but those have the right value for me.
(I noticed this, because in the current state they are easy to confuse, e.g, when your call the method
FFI_DEFAULT_ABI()
you get the right value, but when you access the fieldFFI_DEFAULT_ABI
you get the wrong value, and an error later when you try to pass it to prepare. They are even easier to confuse in Scala, where syntactic sugar often allows one to shortenx.f()
tox.f
.)The text was updated successfully, but these errors were encountered: