aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakpakin <calsrose@gmail.com>2022-08-14 15:40:09 -0500
committerbakpakin <calsrose@gmail.com>2022-08-14 15:40:09 -0500
commitc043b1d9492af55879392c915f1ceb32b3d05127 (patch)
tree1983e71c365304f2c4d1374eeac0859e58045159
parentFix FFI for reference return values and stack parameter passing. (diff)
Add win32 ffi example.
-rw-r--r--CHANGELOG.md1
-rw-r--r--examples/ffi/win32.janet7
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8f021aca..d40fd113 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
All notable changes to this project will be documented in this file.
## 1.23.1 - ???
+- Add FFI support to 64-bit windows compiled with MSVC
- Don't process shared object names passed to dlopen.
- Add better support for windows console in the default shell.c for autocompletion and
other shell-like input features.
diff --git a/examples/ffi/win32.janet b/examples/ffi/win32.janet
new file mode 100644
index 00000000..355fb173
--- /dev/null
+++ b/examples/ffi/win32.janet
@@ -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)
+