問題:
I've noticed that the Linux kernel code uses bool, but I thought that bool was a C++ type.我注意到 Linux 內核代碼使用 bool,但我認爲 bool 是 C++ 類型。 Is bool a standard C extension (eg, ISO C90) or a GCC extension? bool 是標準 C 擴展(例如 ISO C90)還是 GCC 擴展?
解決方案:
參考一: https://stackoom.com/question/6kOc參考二: Is bool a native C type?