Cog/Utils/Logging.h
Christopher Snowhill 85c7073649 Reformat my own source code with clang-format
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-06 21:49:27 -08:00

15 lines
414 B
C

//
// Logging.h
// Cog
//
// Shamelessly stolen from stackoverflow by Dmitry Promsky on 3/7/12.
// Copyright 2012 dmitry.promsky@gmail.com. All rights reserved.
//
#ifdef DEBUG
#define DLog(fmt, ...) NSLog((@"%s (line %d) " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define DLog(...)
#endif
#define ALog(fmt, ...) NSLog((@"%s (line %d) " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);