Alot (see description)

- Made a better global allocator for the process.
- Some small fixes to gen.hpp, removed clear_code_memory as I'm designing this library to for now never free any memory.
- Fixes to memory usage for cached strings
- Added missing verification for attributes in some upfront constructors. Added attribute param for def_type procedure.
- Started to use internal and global keywords in gen.cpp for associated definitions
- Progress toward getting the parsing constructors to support operator definitions.
- There was an *attempt* to get parse_type to support parsing function types. Its not tested yet....
  - Its not an nice setup, there is no validation of parameters, problably will add that in the future.
This commit is contained in:
2023-07-09 12:35:48 -04:00
parent 855ba5a965
commit 6da615e6da
8 changed files with 802 additions and 488 deletions

View File

@ -107,7 +107,6 @@ u32 gen_sanity()
gen_sanity_file.print_fmt("\n");
// Function
if (0)
{
Code fwd = parse_function( code(
void test_function();
@ -128,7 +127,6 @@ u32 gen_sanity()
gen_sanity_file.print_fmt("\n");
// Namespace
if (0)
{
Code def = parse_namespace( code(
namespace TestNamespace
@ -144,10 +142,9 @@ u32 gen_sanity()
gen_sanity_file.print_fmt("\n");
// Operator
if (0)
{
Code bitflagtest = parse_class( code(
Code bitflagtest = parse_enum( code(
enum class EBitFlagTest : u8
{
A = 1 << 0,