条件编译——格式

 

 

#if (defined(MTK_UFS_SUPPORT) || defined(MTK_EMMC_SUPPORT))
#if (defined(MTK_UFS_SUPPORT) || defined(MTK_NEW_COMBO_EMMC_SUPPORT))
    size_wrote += dev.dev->write(dev.dev, trunk, dev.ptn + offset, write_sz, dev.part_id);
#else
    size_wrote += dev.dev->write(dev.dev, trunk, dev.ptn + offset, write_sz);
#endif
#elif defined(MTK_NAND_SUPPORT)
    size_wrote += dev.dev->write(dev.dev, trunk, (unsigned long)dev.ptn + offset, write_sz);
#endif
 

你可能感兴趣的:(条件编译——格式)