mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-10-31 15:00:53 -07:00 
			
		
		
		
	token_fmt returns StrC now. Did some fixes so it can properly function now! Lots of changes to the Array non-parsed implementation. It shows no errors in the edtitor static analysis, however I haven't tried it yet. Unfortunately have some friction with how I would like to set it up like with everything in C++... Can't inherit from ArrayBase to provide the common members to all Array defs, without introducing constructor complexity. I may be open to using constructors in the future, depends on how I feel when trying out the context pattern used in jai and odin...
		
			
				
	
	
		
			36 lines
		
	
	
		
			389 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			389 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "Bloat.cpp"
 | |
| #include "NonParsed\Array.NonParsed.hpp"
 | |
| #include "NonParsed\Sanity.hpp"
 | |
| 
 | |
| 
 | |
| #ifdef gen_time
 | |
| #include "gen.cpp"
 | |
| 
 | |
| using namespace gen;
 | |
| 
 | |
| 
 | |
| int gen_main()
 | |
| {
 | |
| 	Memory::setup();
 | |
| 	gen::init();
 | |
| 
 | |
| 	// gen_sanity();
 | |
| 
 | |
| 	gen_array( u8 );
 | |
| 	// gen_array( sw );
 | |
| 	gen_array_file();
 | |
| 
 | |
| 	gen::deinit();
 | |
| 	Memory::cleanup();
 | |
| 	return 0;
 | |
| }
 | |
| #endif
 | |
| 
 | |
| 
 | |
| #ifdef runtime
 | |
| int main()
 | |
| {
 | |
| 	return 0;
 | |
| }
 | |
| #endif
 |