summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-08-28 17:44:38 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-08-28 17:44:38 +0200
commit956cd84ca545f1d93e2218cbbdbb39c81a46bec8 (patch)
tree21e865b4af06acce77a0623ea5dd3a661306f21e /src/main.zig
parentdf52109ff18ff354e4c0d1b003bc1a0a42c42b54 (diff)
implement other builtins
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.zig b/src/main.zig
index 0cd2ec5..cfd7704 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -12,11 +12,10 @@ pub fn main() !void {
var test_fn = py.globals.get(.{ .string = "hello" }) orelse unreachable;
defer test_fn.decref();
var result = try test_fn.call(try .pack(&.{
- zpy.Str.fromString("hello").object,
- zpy.Str.fromString("world").object,
+ (try zpy.Int.from(42)).object,
+ (try zpy.Int.from(20)).object,
}), null);
defer result.decref();
- std.debug.print("globals = {f}\n", .{py.globals.object});
std.debug.print("hello() = {f}\n", .{result});
}