Displaying 3 results from an estimated 3 matches for "_dbg".
Did you mean:
_db
2010 May 12
0
[LLVMdev] debug macros
...inadequate for
certain situations. The may be cases where you wan't to run calculations in
the debug version that lead up to assertions. In a scenario like this, you
will likely need a temporary variable, and you calculations need to execute
unconditionally.
For this type of scenario I use the _dbg macro:
#ifndef NDEBUG
#define _dbg(x) x
#else
#define _dbg(x)
#endif
The other macro is just a slight variation on the existing DEBUG macro, but
for the common case of printing something out to the debug console, its
simpler to write, and in my opinion easier to read.
#define dbgout(x) DEBUG(db...
2006 Sep 06
7
[RFC PATCH] allow connecting to xenconsole from remote hosts
...data;
+ size_t len;
+};
+
+struct queue {
+ struct message *head;
+ struct message *tail;
+};
static volatile sig_atomic_t received_signal = 0;
+static int debug;
+
+#define dbg(fmt, args...) do { \
+ if (debug) \
+ _dbg("[%s] " fmt, __func__, ##args); \
+} while (0)
+
+static int _dbg(const char *fmt, ...)
+{
+ va_list args;
+
+ va_start(args, fmt);
+ vfprintf(stderr, fmt, args);
+ va_end(args);
+ fflush(stderr);
+}
+
static void sighandler(int signum)
{
received_si...
2011 Feb 18
2
[Settlers 7] Game crashes at startup
...000000b 0
00000047 0
00000046 0
00000042 0
0000003f 0
0000003e 0
0000003d 0
0000003b 0
0000003a 0
00000039 0
00000038 0
00000037 0
00000036 0
00000034 0
00000028 (D) C:\Arquivos de programas\Ubisoft\The Settlers 7 - Paths to a Kingdom\Data\Base\_Dbg\Bin\Release\Settlers7R.exe
00000045 0
00000041 0
0000003c 0
00000026 0
00000030 0
0000002f 0
0000002a 0
00000029 0
0000002e 0
0000002d 0
0000002c 0
00000032 0
00000031 0 <==
Backtrace:
=>0 0x01246214 in vbase90 (+0x86214) (0x0033f310)
fixme:...