backtrace-labs/crashpad

Add C examples

Opened this issue · 2 comments

Could you please add C example for us?

KrzaQ commented

We can do this. There are 2 scenarios to consider:

  • you do have a C++ compiler available, then you can make a separate compilation unit (a .cpp file) that exposes a function called init_crashpad() or something like that and internally does what our examples do
  • you do not have a C++ compiler available, then you'd need our Crashpad fork to expose a C API. That'll require a bit more work on our side.

Which scenario is applicable to you?

you do not have a C++ compiler available, then you'd need our Crashpad fork to expose a C API. That'll require a bit more work on our side.

We are using Vala and C compiler only, so please help to expose a C API.