gcc-extensions

    8熱度

    1回答

    我在寫一些利用計算出來的代碼。語法檢查器將goto *ptr和&&label的每個實例都標記爲語法錯誤。無論如何阻止這個? 加爲ALK: 舉例計算轉移(GCC擴展名): ... void * pLbl = NULL; if (<some expression>) pLbl = &&lbl1; /* gcc extension: no, '&&' is not a typo */

    1熱度

    2回答

    我不明白爲什麼這個工程: /* gcc range extension */ __extension__ static int fn(int n) { switch (n) { case 0: return 0; case 1 ... 1000: return 1; default: return -1; } } 但這並不: /*