mirror of
https://github.com/Ed94/gencpp.git
synced 2025-07-05 05:05:43 -07:00
WIP - Broken Compile : Added pragma once and includes to all files + Parser fixes, and String improvements
Adding the pragma once and includes the files broke compilation, still diagnosing why. - Some string functions were moved to the cpp, still need to do some more evaluation of it and the containers... - Added support for forceinline and neverinline to parsing (untested) - Added support for specifiers in operator cast such as explicit, inline/forceinline/neverinline, etc. - Before it only support const. - Still need to support volatile. - Forceinline was not supported at all for tokenization, fixed that.
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
#pragma once
|
||||
#include "types.hpp"
|
||||
#include "temp/ecode.hpp"
|
||||
#include "temp/eoperator.hpp"
|
||||
#include "temp/especifier.hpp"
|
||||
|
||||
struct AST;
|
||||
struct AST_Body;
|
||||
struct AST_Attributes;
|
||||
@ -163,10 +169,11 @@ struct AST
|
||||
Code& entry ( u32 idx );
|
||||
bool has_entries();
|
||||
bool is_equal ( AST* other );
|
||||
String to_string ();
|
||||
char const* type_str();
|
||||
bool validate_body();
|
||||
|
||||
neverinline String to_string();
|
||||
|
||||
template< class Type >
|
||||
Type cast()
|
||||
{
|
||||
@ -574,4 +581,3 @@ Define_CodeType( Var );
|
||||
#undef Using_Code
|
||||
|
||||
#pragma endregion Code Types
|
||||
|
||||
|
Reference in New Issue
Block a user