[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PATCH] Testing support for C++, without loader support, and for Windows
- From: bil til <biltil52@...>
- Date: Sun, 16 Apr 2023 15:27:35 +0200
But such effort is not required, not a MUST... . (or what is your
exact motivation to do such adaptions?)
You can implement such C code also directly in C++ if you want, in
Microcontroller programming e. g. the Interrupt functions also quite
typically are added as C code, where you then typically would just
invoke some static C++ class function, to attach the interrupt to some
class.
So generally it is no problem to add the C code to C++ software, just
you have to use this "extern "C"{...};" constructs in the header files
(see lua.hpp file).