Skip to content

Commit 9aa0c56

Browse files
authoredMar 1, 2025
bindgen
1 parent d97e459 commit 9aa0c56

File tree

4 files changed

+7220
-3
lines changed

4 files changed

+7220
-3
lines changed
 

‎.github/workflows/default.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
- name: Clang
1515
shell: bash
1616
run: |
17-
clang main.c
18-
clang++ -E main.c
19-
ls -lh
17+
cargo install bindgen-cli
18+
bindgen --merge-extern-blocks --allowlist-file=".*glfw.*\.h" -o ./bindings.rs ./glfw.h --
19+
cat bindings.rs
2020
2121
2222

‎glfw.h

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#define GLFW_INCLUDE_NONE
2+
#include "glfw3.h"
3+
#define GLFW_EXPOSE_NATIVE_COCOA
4+
#define GLFW_EXPOSE_NATIVE_NSGL
5+
#include "glfw3native.h"

0 commit comments

Comments
 (0)