mirror of
https://github.com/krzysztofzablocki/Sourcery.git
synced 2026-04-07 19:17:40 +00:00
cec7895f0a
* Adjusted file structure to accommodate two generated files * Adjusted scripting * Removed Description, Diffable, Equality for now * Removed Stencil import * Updated templates * Updated scripting * Updated generated coding * Disable build deletion (temp) * Updated template * Updated generated code * updated generated code * Updated generated code * Adjusted scripting * Updated scripting * Updated generated code * Reverted template deletion * Removed Stencil imports * Updated generated code * trigger CI * Removed description, diffable and equality stencil templates * Reverted temporary changes * Commented failing tests * Skipping JSExport for description & hash * Updated generated code * Enabled failing tests * Adding stencil templates back to test tests * Reset generated file for linux for test * Reverted Extensions for testing * Reverted ParserResultsComposed * Attempt to fix unit tests * Attempt to resolve unit test * Reverted TypeName asSource * Reverted TypeName revertion * Reverted revert of ParserResultComposed * Reverted revert of Extensions * Reverted revert of Linux.content.generated * Reverted attempts to fix unit tests * Fix for the failing codegen tests * Added clarifying comment * Removed description, diffable and equality stencil templates * Updated generated code * Tinkering with optimization level for speed boost * Excluded stencil templates for codegen * Fixed wrong compiler flag * Removed speed optimization to a separate PR * Reverted test code
18 lines
447 B
Swift
18 lines
447 B
Swift
#if !canImport(ObjectiveC)
|
|
import Foundation
|
|
|
|
public class NSException {
|
|
static func raise(_ name: String, format: String, arguments: CVaListPointer) {
|
|
fatalError ("\(name) exception: \(NSString(format: format, arguments: arguments))")
|
|
}
|
|
|
|
static func raise(_ name: String) {
|
|
fatalError("\(name) exception")
|
|
}
|
|
}
|
|
|
|
public extension NSExceptionName {
|
|
static var parseErrorException = "parseErrorException"
|
|
}
|
|
#endif
|