summaryrefslogtreecommitdiff
path: root/cmamut.lisp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2023-03-12 05:04:52 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2023-03-12 05:04:52 -0300
commit4a721bc7ae71489d261a037a6b04d0df00419f89 (patch)
tree14a9901b7fb728c2222ef4abbe1d9e113a08dbe8 /cmamut.lisp
parent85e222e9699855668e1157f31e3938ebeffec088 (diff)
downloadcmamut-4a721bc7ae71489d261a037a6b04d0df00419f89.tar.gz
cmamut-4a721bc7ae71489d261a037a6b04d0df00419f89.zip
Fix constants not being generated
Diffstat (limited to 'cmamut.lisp')
-rw-r--r--cmamut.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmamut.lisp b/cmamut.lisp
index 4f90a37..b0f7144 100644
--- a/cmamut.lisp
+++ b/cmamut.lisp
@@ -6,6 +6,7 @@
(defun get-raw-spec (filename)
(sb-ext:run-program "/usr/bin/c2ffi" (list filename
"--macro-file" "defines.h"
+ "--with-macro-defs"
"--output" "spec.json"))
(sb-ext:run-program "/usr/bin/c2ffi" '("defines.h"
"--output" "defines.json"))
@@ -14,7 +15,7 @@
(delete-file "spec.json")
(delete-file "defines.json")
(delete-file "defines.h")
- (concatenate `(simple-vector ,(+ (length spec) (length defines))) spec defines)))
+ (concatenate 'vector defines spec)))
; TODO: Handle different sizes of enum
(defun cook-type (raw-type type-associations)