gdjn  Diff

Differences From Artifact [36c3aeafd8]:

To Artifact [81bf72f2dc]:


     1      1   # [ʞ] lib/prim.janet
     2      2   #  ~ lexi hale <lexi@hale.su>
     3      3   #  🄯 AGPLv3
     4      4   #  ? declares the primitives supplied by gdjn
     5      5   #  > (import /lib/prim)
     6      6   
     7         -(def *gd-api-map* @{})
            7  +(def *gd-api-ext* @{})
     8      8   
     9      9   (defmacro- extern [name]
    10     10   	(def sym (gensym))
    11         -	(put *gd-api-map* sym name)
           11  +	(put *gd-api-ext* sym name)
    12     12   	~(def ,name ',sym))
    13     13   
    14     14   # takes a string and returns a prim/class-handle
    15     15   # for a native godot class
    16     16   (extern class-load)
    17     17   
    18     18   # an abstract that wraps a class and provides