6cb71cd6fa5a — Leonard Ritter a month ago
* added `static-library` spice to allow loading C libraries without requiring to start a new run-stage
1 files changed, 5 insertions(+), 0 deletions(-)

M lib/scopes/core.sc
M lib/scopes/core.sc +5 -0
@@ 6649,6 6649,11 @@ let
     load-library = sc_load_library
     load-object = sc_load_object
 
+spice static-library (path)
+    path as:= string
+    sc_load_library path
+    ;
+
 sugar fold-locals (args...)
     fn stage-constant? (value)
         ('pure? value) and (('typeof value) != SpiceMacro)