Embedded programming language for Zig
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

minor changes

IamPyu c5c2fdb8 0fdd2edb

-15
-7
build.zig
··· 38 38 }); 39 39 zexa_runtime_mod.addImport("zexa", zexa_mod); 40 40 41 - const zexa_runtime_lib = b.addLibrary(.{ 42 - .name = "zexaruntime", 43 - .root_module = zexa_runtime_mod, 44 - .linkage = .dynamic, 45 - }); 46 - b.installArtifact(zexa_runtime_lib); 47 - 48 41 const zexa_runtime_tests = b.addTest(.{ 49 42 .root_module = zexa_runtime_mod, 50 43 });
-8
src/lang.zig
··· 141 141 pub fn initNil(scope: *Scope) RuntimeError!*Self { 142 142 const atom = try scope.createValue(); 143 143 atom.* = Self{ .expr = .nil }; 144 - 145 144 return atom; 146 145 } 147 146 ··· 496 495 const arglist = try scope.allocator.alloc(*Value, args.len); 497 496 @memcpy(arglist, args); 498 497 defer scope.allocator.free(arglist); 499 - 500 - // var arglist = try std.ArrayList(*Value).initCapacity( 501 - // scope.allocator, 502 - // args.len, 503 - // ); 504 - // defer arglist.deinit(scope.allocator); 505 - // try arglist.appendSlice(scope.allocator, args); 506 498 507 499 switch (self.getType()) { 508 500 .function, .native_func => {