gdjn  Diff

Differences From Artifact [36c3aeafd8]:

To Artifact [81bf72f2dc]:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# [ʞ] lib/prim.janet
#  ~ lexi hale <lexi@hale.su>
#  🄯 AGPLv3
#  ? declares the primitives supplied by gdjn
#  > (import /lib/prim)

(def *gd-api-map* @{})

(defmacro- extern [name]
	(def sym (gensym))
	(put *gd-api-map* sym name)
	~(def ,name ',sym))

# takes a string and returns a prim/class-handle
# for a native godot class
(extern class-load)

# an abstract that wraps a class and provides






|



|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# [ʞ] lib/prim.janet
#  ~ lexi hale <lexi@hale.su>
#  🄯 AGPLv3
#  ? declares the primitives supplied by gdjn
#  > (import /lib/prim)

(def *gd-api-ext* @{})

(defmacro- extern [name]
	(def sym (gensym))
	(put *gd-api-ext* sym name)
	~(def ,name ',sym))

# takes a string and returns a prim/class-handle
# for a native godot class
(extern class-load)

# an abstract that wraps a class and provides