Can C++ functions marked as Extern “C” throw?

前端 未结 4 1818
难免孤独
难免孤独 2020-12-30 22:52

I\'ve got C++ functions that I want to declare using extern \"C\" even though they are only called in C++ code. Yes, I know this is strange but it\'s something

4条回答
  •  既然无缘
    2020-12-30 23:17

    Here is answer for your question: http://yosefk.com/c++fqa/mixing.html#fqa-32.6

    Basically you won't be able to catch it. (but why you won't just compile it and try? :))

提交回复
热议问题