24 Jul
2008
24 Jul
'08
7:52 a.m.
On Wednesday 23 July 2008 03:56:14 pm Vitaliy Margolen wrote:
+#define checkGLcall(A...) \
AFAIK, this valid C. It's a GNU extension. This: #define checkGLcall(...) TRACE(__VA_ARGS__); is valid C, but requires C99.
+ TRACE(A); \ + TRACE(" @ %s:%d call ok\n", __FILE__, __LINE__); \
And I think splitting this up potentially introduces a trace race if a thread switch happens between the two calls. The other thread's trace would print where the second statement should, and the second statement would just "float" later in the log.