From c56b324888ef216a9668c6d2558627245255bcd2 Mon Sep 17 00:00:00 2001 From: Adrian Smith Date: Wed, 10 Jul 2024 14:54:49 -0700 Subject: [PATCH] fix defining structs in dev. --- src/com/phronemophobic/clong/gen/jna.clj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/phronemophobic/clong/gen/jna.clj b/src/com/phronemophobic/clong/gen/jna.clj index 6056739..35f9367 100644 --- a/src/com/phronemophobic/clong/gen/jna.clj +++ b/src/com/phronemophobic/clong/gen/jna.clj @@ -469,6 +469,11 @@ (defn def-struct [struct-prefix struct] (when *compile-files* + ((requiring-resolve 'com.phronemophobic.clong.gen.jna.insn/def-struct) + struct-prefix + struct)) + (if-compiling + nil ((requiring-resolve 'com.phronemophobic.clong.gen.jna.insn/def-struct) struct-prefix struct)))