PetrPPetrov / beautiful-capi

Beautiful Capi is a tool which automates the creation of compiler-independent and binary compatible C++ libraries across different C++ compilers
GNU General Public License v3.0
33 stars 3 forks source link

Type maps for simple types: int, unsigned int, double etc. #6

Closed PetrPPetrov closed 7 years ago

PetrPPetrov commented 7 years ago

Develop methods to map simple types (ints, unsigned ints, shorts, etc.) to well-defined size types, such as int32_t, uint32_t, int16_t etc. This requires some research: which headers should be used on the client side to have the above types defined.

PetrPPetrov commented 7 years ago

Also allow wrapping const char* as std::string (in C++)

PetrPPetrov commented 7 years ago

These changes are not required. Conclusion: use int32_t, int8_t types in API as you want.

Custom software developer have to define (or include standard header or by another way) the required types before including header files of the wrapped library.

PetrPPetrov commented 7 years ago

This feature is required for types like bool, std::string, etc.