mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Avoid generating an accidental UDL suffix
In the error case, we previously output a pragma with a string immediately followed by __FILE__ - but with no space between the string terminator and __FILE__, a compliant C++ compiler can interpret this as a user-defined literal suffix and end up failing to embed the intended information. We should add spaces here to ensure our generated code is standards-compliant.
This commit is contained in:
committed by
Marshall Greenblatt
parent
5d48f277f2
commit
55e158fe81
@ -234,7 +234,7 @@ def format_translation_changes(old, new):
|
||||
'\n // NOW: '+new['retval']
|
||||
|
||||
if changed:
|
||||
result += '\n #pragma message("Warning: "__FILE__": '+new['name']+ \
|
||||
result += '\n #pragma message("Warning: " __FILE__ ": '+new['name']+ \
|
||||
' prototype has changed")\n'
|
||||
|
||||
return result
|
||||
|
Reference in New Issue
Block a user