don't send empty envelopes

This commit is contained in:
Mitchell Hashimoto
2024-08-27 20:15:14 -07:00
parent b826c98701
commit 33e9bc14ef
3 changed files with 14 additions and 0 deletions

View File

@@ -31,4 +31,8 @@ pub const Value = struct {
pub fn incref(self: Value) Value {
c.sentry_value_incref(self.value);
}
pub fn isNull(self: Value) bool {
return c.sentry_value_is_null(self.value) != 0;
}
};