You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
495 B
29 lines
495 B
import Foundation
|
|
|
|
@objc class SwiftMainClass : NSObject {
|
|
@objc class func SwiftMain() -> Int32 {
|
|
dump("Hello World!");
|
|
#if FOO
|
|
dump("FOO defined");
|
|
#else
|
|
fatalError("FOO not defined");
|
|
#endif
|
|
#if BAR
|
|
dump("BAR defined");
|
|
#else
|
|
fatalError("BAR not defined");
|
|
#endif
|
|
#if CCOND
|
|
fatalError("CCOND defined");
|
|
#else
|
|
dump("CCOND not defined");
|
|
#endif
|
|
#if SWIFTCOND
|
|
dump("SWIFTCOND defined");
|
|
#else
|
|
fatalError("SWIFTCOND not defined");
|
|
#endif
|
|
return 0;
|
|
}
|
|
}
|