Skip to content

michelf/VerticalError

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vertical Error

A special kind of fatal error that will convert a message to a stack of function calls. You can then read the message vertically in your stack trace.

This contraption works on Apple's platforms. Elsewhere it is equivalent to a regular call to fatalError.

Usage

Swift

import VerticalError

let value = Int.random(in: 0...10)
verticalError("Invalid value \(value)")

Objective-C

@import VerticalError

int value = random();
VerticalError([NSString stringWithFormat:@"Invalid value %d", value]);

About

A special kind of fatal error that will convert a message to a stack of function calls.

Resources

Stars

Watchers

Forks

Packages

No packages published