Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.
/ libffi-d Public archive

Binding to the libffi foreign function interface library for the D programming language.

License

Notifications You must be signed in to change notification settings

lycus/libffi-d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libffi binding for D

libffi-d is a binding to the libffi foreign function interface library. It allows you to invoke functions that use various calling conventions dynamically. Often, particularly in interpreters, it is necessary to dynamically invoke a native function. This is made possible with libffi(-d) as long as you know the return type, parameter types, and the ABI.

Building

You build libffi-d by using Waf:

$ waf configure --lp64=true --mode=release
$ waf build
$ waf install

You can of course adjust the parameters to configure as needed.

Limitations

  • This binding assumes the presence of the closure API.
  • The raw API is not bound.
  • This binding only supports the native C calling convention (i.e. 'cdecl') on all platforms, and 'stdcall' on Windows.
  • There is no support for functions with variadic argument lists.
  • The Java-specific API is not bound.

About

Binding to the libffi foreign function interface library for the D programming language.

Resources

License

Stars

Watchers

Forks

Packages

No packages published