[問題] 回傳問題

看板C_and_CPP作者 (飛天小牛)時間10年前 (2015/03/01 14:38), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串1/1
請問底下這串程式碼中__result; 是在回傳__result嗎? 還是有其他意思? #define __LPM_enhanced__(addr) \ (__extension__({ \ uint16_t __addr16 = (uint16_t)(addr); \ uint8_t __result; \ __asm__ \ ( \ "lpm %0, Z" "\n\t" \ : "=r" (__result) \ : "z" (__addr16) \ ); \ __result; \ })) -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.114.77.43 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1425191931.A.7F8.html

03/01 14:57, , 1F
gcc extension: http://ppt.cc/uTyL
03/01 14:57, 1F

03/03 03:59, , 2F
u8 __result ; 跑完ASML值塞到result ; 回傳 __result;
03/03 03:59, 2F

03/03 04:25, , 3F
USB?
03/03 04:25, 3F
文章代碼(AID): #1KyhFxVu (C_and_CPP)