core icon indicating copy to clipboard operation
core copied to clipboard

Improve overall portability with compiler, OS and architecture detection (C/C++)

Open viferga opened this issue 3 years ago • 1 comments

🚀 Feature

Respect to portability, we should improve it as much as possible. For doing this there's different options but the most common one is directly supporting it from code (a part from all CMake checks that already exists and we should keep improving). All the checks in C/C++ code for portability issues have been completely hardcoded and repeated, so those should be generalized as much as possible.

For doing this, I am quoting myself from another issue:

For implementing the portability module, you can find some bases here:

predef - An excellent library for compiler, platform or architecture detection: https://sourceforge.net/projects/predef/ Argentum Online C - A game engine I wrote time ago which includes a portability module we can reuse: https://bitbucket.org/parrastudios/argentum-online-c/src/master/common/src/Portability/

Here's the issue quoted: https://github.com/metacall/core/issues/241

We need to standardize the import module, I copied the automatically generated _feature.h module for reference too: https://github.com/metacall/core/blob/develop/source/portability/include/portability/portability_compiler_detection.h

viferga avatar Feb 15 '23 19:02 viferga

Hey @viferga i would like to work on this issue. Is there any starting points that u can give me. :)

zeus2611 avatar Mar 05 '23 07:03 zeus2611