Differences From Artifact [36c3aeafd8]:
- File lib/prim.janet — part of check-in [91e02e35d5] at 2025-02-21 22:02:29 on branch trunk — add janet API bootstrapping infra (prim, core), begin building executor (vm.c), design class model, continue working on loading, add script instances, tidy up src organization, build janet to use godot malloc/free (user: lexi, size: 1300) [annotate] [blame] [check-ins using]
To Artifact [81bf72f2dc]:
- File lib/prim.janet — part of check-in [c0fd81ac3d] at 2025-02-28 00:10:28 on branch trunk — continue iterating on object model (user: lexi, size: 1300) [annotate] [blame] [check-ins using]
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