Massive total progress on c_library generation: (Summary of last 3 WIP commits)

- No longer using GEN_API_C_* macros as C-library wont need them and if you need C linkage there is no need to use the c++ library.
- GEN_C_LIKE_CPP replaces GEN_SUPPORT_CPP_MEMBER_FEATURES && GEN_SUPPORT_CPP_REFERENCES
  a. If users don't want to use member functions, function overloading, or referencese they can just this one macro to before including the library.
- Enums aren't accomodated in C++ sources, they entirely converted in c_libray.cpp
- ast.hpp now properly generates with C variant
- Fully prepared code_types.hpp for C library gen (not tested yet)
- Generated enums managed by helper.hpp now properly generate for C library.
This commit is contained in:
2024-12-07 17:58:56 -05:00
parent 451b71884c
commit 1c133bfc8d
4 changed files with 89 additions and 82 deletions

View File

@ -193,7 +193,7 @@ struct Arena
ssize TotalUsed;
ssize TempCount;
#if ! GEN_C_LIKE_CPP
#if GEN_COMPILER_CPP && ! GEN_C_LIKE_CPP
#pragma region Member Mapping
forceinline operator AllocatorInfo() { return arena_allocator_info(this); }