diff options
| author | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-12-30 23:08:15 +0530 |
|---|---|---|
| committer | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-12-30 23:08:15 +0530 |
| commit | 680be9e22fc5d3d3bc6bd0d237e488e3646940a5 (patch) | |
| tree | d804a5ca8a78de351c27244a80cd9aeba5e3a733 /src/cljcc/schema.clj | |
| parent | 99aa43a28e527ac89eef26f5aba5b0989ab5da35 (diff) | |
Add typechecking for doubles
Diffstat (limited to 'src/cljcc/schema.clj')
| -rw-r--r-- | src/cljcc/schema.clj | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cljcc/schema.clj b/src/cljcc/schema.clj index 8b5d3a8..dd3e729 100644 --- a/src/cljcc/schema.clj +++ b/src/cljcc/schema.clj @@ -316,10 +316,15 @@ [:type [:= :ulong-init]] [:value int?]]) +(def DoubleInit + [:map + [:type [:= :double-init]] + [:value double?]]) + (def Initial [:map [:type [:= :initial]] - [:static-init [:or IntInit LongInit UIntInit ULongInit]]]) + [:static-init [:or IntInit LongInit UIntInit ULongInit DoubleInit]]]) (def InitialValue [:or |
