File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ _FORCE_INLINE_ NSNumber *double_to_objc(double p_num) {
6666 return [NSNumber numberWithDouble:p_num];
6767}
6868
69- NSObject *variant_to_objc (const godot::Variant &p_value);
69+ NSObject *variant_to_objc (const godot::Variant &p_value, int p_depth = 0 );
7070NSDictionary *dictionary_to_objc (const godot::Dictionary &p_dictionary);
7171
7272} // namespace sentry::cocoa
Original file line number Diff line number Diff line change 44
55namespace sentry ::cocoa {
66
7- NSObject *variant_to_objc (const godot::Variant &p_value) {
7+ NSObject *variant_to_objc (const godot::Variant &p_value, int p_depth) {
8+ if (p_depth > 32 ) {
9+ return [NSString stringWithUTF8String: " (Conversion depth limit reached)" ];
10+ }
11+
812 switch (p_value.get_type ()) {
913 case Variant::NIL: {
1014 return [NSNull null ];
You can’t perform that action at this time.
0 commit comments