// // Prefix header for all source files of the 'P4Menu' target in the 'P4Menu' project // #ifdef __OBJC__ #import <Cocoa/Cocoa.h> #import <SOLogger/SOLogger.h> extern SOLogger *gLogger; extern NSString *gLogFilePath; #define LOG_ERROR(format, ...) [gLogger error:format, ##__VA_ARGS__] #define LOG_WARNING(format, ...) [gLogger warning:format, ##__VA_ARGS__] #define LOG_INFO(format, ...) [gLogger info:format, ##__VA_ARGS__] #define LOG_NOTICE(format, ...) [gLogger notice:format, ##__VA_ARGS__] #define LOG_CRITICAL(format, ...) [gLogger critical:format, ##__VA_ARGS__] #define LOG_PANIC(format, ...) [gLogger panic:format, ##__VA_ARGS__] #define LOG_DEBUG_LOG(log, format, ...) \ do { \ NSMutableString *message = [NSMutableString stringWithFormat:@"%s:%d ", __PRETTY_FUNCTION__, __LINE__]; \ [message appendFormat:format, ##__VA_ARGS__]; \ [log debug:@"%@", message]; \ } while(0); #define LOG_DEBUG(format, ...) LOG_DEBUG_LOG( gLogger, format, ##__VA_ARGS__ ) #endif
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 8331 | Matt Attaway |
Adding initial version of MacMenu for Perforce MacMenu is a helpful Perforce client that sits in your toolbar. It allows you to run standard Perforce operations on the document that is open the currently active editor/viewer. |