Toolchain
Modul ini mendefinisikan lapisan abstraksi toolchain melalui makro.
Ringkasan
Pemakaian:
typedef OT_TOOL_PACKED_BEGIN struct { char mField1; union { char mField2; long mField3; } OT_TOOL_PACKED_FIELD; } OT_TOOL_PACKED_END packed_struct_t;
Makro
OT_APPLE_IGNORE_GNU_FOLDING_CONSTANT
OT_APPLE_IGNORE_GNU_FOLDING_CONSTANT __VA_ARGS__
OT_FALL_THROUGH
OT_FALL_THROUGH do \ { \ } while (false) /* fallthrough */
Menekan fall through warning di compiler tertentu.
OT_MUST_USE_RESULT
OT_MUST_USE_RESULT
Indikasi khusus kompilator bahwa kelas atau enum harus digunakan jika itu adalah nilai hasil dari suatu fungsi.
OT_TOOL_PACKED_BEGIN
OT_TOOL_PACKED_BEGIN
Indikasi khusus kompiler bahwa kelas atau struct harus dikemas dalam byte.
OT_TOOL_PACKED_FIELD
OT_TOOL_PACKED_FIELD
Tunjukkan ke compiler sebuah struct atau union bersarang yang akan dikemas dalam kelas atau struct yang dikemas byte.
OT_TOOL_WEAK
OT_TOOL_WEAK
Pengubah simbol lemah khusus kompiler.
OT_UNREACHABLE_CODE
OT_UNREACHABLE_CODE CODE
Tekan peringatan kode tidak terjangkau di rantai alat tertentu.
OT_UNUSED_VARIABLE
OT_UNUSED_VARIABLE do \ { \ (void)(VARIABLE); \ } while (false)
Sembunyikan peringatan variabel yang tidak digunakan di toolchain tertentu.