We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d97e459 commit 9aa0c56Copy full SHA for 9aa0c56
.github/workflows/default.yaml
@@ -14,9 +14,9 @@ jobs:
14
- name: Clang
15
shell: bash
16
run: |
17
- clang main.c
18
- clang++ -E main.c
19
- ls -lh
+ cargo install bindgen-cli
+ bindgen --merge-extern-blocks --allowlist-file=".*glfw.*\.h" -o ./bindings.rs ./glfw.h --
+ cat bindings.rs
20
21
22
glfw.h
@@ -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