Re:Debugging file corruption on iOS
by fdawg4l on Tuesday August 12, 2014 @10:52PM
(#8171246)
Does this code snippet look fishy to anyone else? First, the mismatch braces are messing with my head. I'm thinking the brace before the return is a typo. Also, the call to the macro looks wrong. Shouldn't they be checking for fd == trap_fd?
[ Parent
| on HN ]
Re:Debugging file corruption on iOS
by nspiegelberg on Tuesday August 12, 2014 @10:58PM
(#8171259)
1. I added an extra brace after FBFatal in a final revision :( I'll ask for a revision
2. FBFatal has the same semantics as assert(), so that's correct.
3. The 'rebind_symbols' line truncates and is missing a horizontal scroll. You can view the rest of it if you click drag.
> 2. FBFatal has the same semantics as assert(), so that's correct.
Ah, this makes sense to me now. Thanks!> Does this code snippet look fishy to anyone else?
If you can still edit your post, try block-indenting the entire code list with four spaces along the left margin -- this allows the code to appear on separate lines as intended and preserves the original indentation.