1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-18 16:25:11 +00:00

Remove pthread.h from janet.h

Should make janet a bit easier to use. Also changes the
header to not expose the size of native mutexes and rwlocks, except
with janet_os_mutex_size and janet_os_rwlock_size.
This commit is contained in:
Calvin Rose
2022-06-17 17:13:58 -05:00
parent 80729353c8
commit 62fc55fc74
6 changed files with 72 additions and 82 deletions

View File

@@ -45,6 +45,7 @@
(defn defmacro :macro
"Define a macro."
[name & more]
(setdyn name @{}) # override old macro definitions in the case of a recursive macro
(apply defn name :macro more))
(defmacro as-macro