lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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).