X
xmllmx
It seems true, but I can't find any exact statement on this in the C
or C++ standard.
The C and C++ standard states:
"__FILE_ The presumed name of the source file (a character string
literal)."
However, what the term "character string literal" means is not exactly
defined. It can be interpreted as a string "C:\\HelloWorld.cpp" or a
wide string L"C:\\HelloWorld.cpp".
So, I think __FILE__ can be interpreted as a wide string by the
implementation, which still conforms to the standard.
Am I right? Any comment?
or C++ standard.
The C and C++ standard states:
"__FILE_ The presumed name of the source file (a character string
literal)."
However, what the term "character string literal" means is not exactly
defined. It can be interpreted as a string "C:\\HelloWorld.cpp" or a
wide string L"C:\\HelloWorld.cpp".
So, I think __FILE__ can be interpreted as a wide string by the
implementation, which still conforms to the standard.
Am I right? Any comment?