Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swift 5.9 と C++ の互換性

h.crane
March 06, 2024

Swift 5.9 と C++ の互換性

Event
集まれSwift好き!Swift愛好会 vol.80

Details
Qiita: https://qiita.com/hcrane/items/081dd77bd593f1ea74af

h.crane

March 06, 2024
Tweet

More Decks by h.crane

Other Decks in Technology

Transcript

  1.                <Company>                ・Rakuten Group, Inc          <Application>          ・Rakuma

       <Role>    ・iOS Developer    ・Developer Relations               <Account>                ・Twitter:@hcrane14 Tech Lead
  2. extern "C" ʹؔͯ͠ • C++ ͷݴޠػೳ • C++ Λ Cݴޠͱͯ͠ѻ͏Α͏͢Δ

    • C++ ͱ CݴޠͷίϯύΠϥͰޓ׵ੑ͕ͳ͍࣌ʹ extern "C" Ͱճආ͢Δ → Swift Ͱ࢖͑͹ C++ Λݺͼग़͢ͷʹ࢖͑Δ
  3. module.modulemap ʹؔͯ͠ • Bridging Header ͷ্Ґޓ׵ • Objective-C / C

    ͷγϯϘϧʢؔ਺ɺม਺ɺܕɺఆ਺ʣʹΞΫηεͰ͖Δ etc.