[英]Wrapping a line of preprocessor C++
如何包裝一行預處理器指令並忽略額外的空間?
測試代碼:
#error Line0\
Line 1
結果:
short_test.cpp(1): error: #error directive: Line0 Line 1
#error Line0\
^
雖然我想在測試代碼中保留縮進模式,但我不希望結果中的line0和line1之間的間距。
那可能嗎?
我想要的結果:
short_test.cpp(1): error: #error directive: Line0Line 1
no space between Line0 and Line1
我想要的測試代碼
#error Line0\
(extra stuff?) Line 1 <-- keep the indent, ok to insert some extra stuff.
你不能,抱歉。
預處理器將精確地提供您提供的內容,包括任何縮進。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.