justin = {
main feed
,
music
,
code
= {
cockos
,
reaper
,
wdl
,
ninjam
,
jsfx
,
more
}
,
askjf
,
pubkey
};
Ask Justin Frankel
No reasonable question unanswered since 2009!
Suggested topics: programming, music, sleep, coffee, etc.
Note: please do not ask questions about REAPER features, bugs or scheduling, use the
forums
instead.
Name:
Ask:
Human (enter yes):
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Question:
How about wdl_log display __FILE__ __LINE__? Maybe you can use #define WDL_LOG(...) wdl_log_print(__FILE__, __LINE__, __VA_ARGS__) and void wdl_log_print(const char *file, int line, const char *fmt, ...) #else #define WDL_LOG(...) do {} while(0)
Asked by Gio (94.68.165.x) on September 11 2021, 8:53pm
Reply on September 11 2021, 11:13pm:
I forget, does __FILE__ in a macro give you the file of the macro, or the file of where the macro was invoked?
Comments:
Posted by Gio (94.68.165.x) on September 12 2021, 12:37am:
In practice (at least vc11) the later. My concern would be the vc preprocessor pre-vc11 about variadic macros (gcc ok), although not sure about the icc but it might worth a try? it can be useful to have that info in a debug-scenario for a rare failed initialization. For just tracing some specific info not so much.
Posted by Gio (94.68.165.x) on September 12 2021, 2:11am:
Also checked gcc and clang; they behave/expand like vc11. If I had to guess/bet, icc should be just fine.
Comment:
Your Name:
-- Site Owner's Name:
(for human-verification) Comment:
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Copyright 2025 Justin Frankel
.
|
RSS