mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Add win32 ffi example.
This commit is contained in:
parent
9a6d2a7b32
commit
c043b1d949
@ -2,6 +2,7 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## 1.23.1 - ???
|
## 1.23.1 - ???
|
||||||
|
- Add FFI support to 64-bit windows compiled with MSVC
|
||||||
- Don't process shared object names passed to dlopen.
|
- Don't process shared object names passed to dlopen.
|
||||||
- Add better support for windows console in the default shell.c for autocompletion and
|
- Add better support for windows console in the default shell.c for autocompletion and
|
||||||
other shell-like input features.
|
other shell-like input features.
|
||||||
|
7
examples/ffi/win32.janet
Normal file
7
examples/ffi/win32.janet
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
(ffi/context "user32.dll")
|
||||||
|
|
||||||
|
(ffi/defbind MessageBoxA :int
|
||||||
|
[w :ptr text :string cap :string typ :int])
|
||||||
|
|
||||||
|
(MessageBoxA nil "Hello, World!" "Test" 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user