mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 15:54:45 -08:00
Merge branch 'de_oop'
This commit is contained in:
commit
2a025cb073
@ -73,8 +73,6 @@ The base library itself does not use anything but C-like features to allow for g
|
|||||||
|
|
||||||
Member function support or free-functions with reference object passing are wrapped in `! GEN_C_LIKE CPP` preprocess conditionals.
|
Member function support or free-functions with reference object passing are wrapped in `! GEN_C_LIKE CPP` preprocess conditionals.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## C++ template usage
|
## C++ template usage
|
||||||
|
|
||||||
There are only 4 template definitions in the entire library (C++ versions). (`Array<Type>`, `Hashtable<Type>`, `swap<Type>`, and `tmpl_cast<CodeT>(CodeT code)`)
|
There are only 4 template definitions in the entire library (C++ versions). (`Array<Type>`, `Hashtable<Type>`, `swap<Type>`, and `tmpl_cast<CodeT>(CodeT code)`)
|
||||||
|
@ -309,18 +309,6 @@ struct Code
|
|||||||
|
|
||||||
Code& operator ++();
|
Code& operator ++();
|
||||||
|
|
||||||
// TODO(Ed) : Remove this overload.
|
|
||||||
auto& operator*()
|
|
||||||
{
|
|
||||||
local_persist thread_local
|
|
||||||
Code NullRef = { nullptr };
|
|
||||||
|
|
||||||
if ( ast == nullptr )
|
|
||||||
return NullRef;
|
|
||||||
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef GEN_ENFORCE_STRONG_CODE_TYPES
|
#ifdef GEN_ENFORCE_STRONG_CODE_TYPES
|
||||||
# define operator explicit operator
|
# define operator explicit operator
|
||||||
#endif
|
#endif
|
||||||
|
@ -440,8 +440,6 @@ bool array_set_capacity(Array<Type>* array, usize new_capacity)
|
|||||||
|
|
||||||
#pragma endregion Array
|
#pragma endregion Array
|
||||||
|
|
||||||
// TODO(Ed) : This thing needs ALOT of work.
|
|
||||||
|
|
||||||
#pragma region HashTable
|
#pragma region HashTable
|
||||||
#define HashTable(Type) HashTable<Type>
|
#define HashTable(Type) HashTable<Type>
|
||||||
|
|
||||||
|
@ -319,33 +319,33 @@ namespace AST_, gen_AST_
|
|||||||
word Code, gen_Code
|
word Code, gen_Code
|
||||||
word Token, gen_Token
|
word Token, gen_Token
|
||||||
|
|
||||||
word CodeBody, gen_CodeBody
|
word CodeBody, gen_CodeBody
|
||||||
word CodeAttributes, gen_CodeAttributes
|
word CodeAttributes, gen_CodeAttributes
|
||||||
word CodeComment, gen_CodeComment
|
word CodeComment, gen_CodeComment
|
||||||
word CodeClass, gen_CodeClass
|
word CodeClass, gen_CodeClass
|
||||||
word CodeConstructor, gen_CodeConstructor
|
word CodeConstructor, gen_CodeConstructor
|
||||||
word CodeDefine, gen_CodeDefine
|
word CodeDefine, gen_CodeDefine
|
||||||
word CodeDestructor, gen_CodeDestructor
|
word CodeDestructor, gen_CodeDestructor
|
||||||
word CodeEnum, gen_CodeEnum
|
word CodeEnum, gen_CodeEnum
|
||||||
word CodeExec, gen_CodeExec
|
word CodeExec, gen_CodeExec
|
||||||
word CodeExtern, gen_CodeExtern
|
word CodeExtern, gen_CodeExtern
|
||||||
word CodeInclude, gen_CodeInclude
|
word CodeInclude, gen_CodeInclude
|
||||||
word CodeFriend, gen_CodeFriend
|
word CodeFriend, gen_CodeFriend
|
||||||
word CodeFn, gen_CodeFn
|
word CodeFn, gen_CodeFn
|
||||||
word CodeModule, gen_CodeModule
|
word CodeModule, gen_CodeModule
|
||||||
word CodeNS, gen_CodeNS
|
word CodeNS, gen_CodeNS
|
||||||
word CodeOperator, gen_CodeOperator
|
word CodeOperator, gen_CodeOperator
|
||||||
word CodeOpCast, gen_CodeOpCast
|
word CodeOpCast, gen_CodeOpCast
|
||||||
word CodePragma, gen_CodePragma
|
word CodePragma, gen_CodePragma
|
||||||
word CodeParams, gen_CodeParams
|
word CodeParams, gen_CodeParams
|
||||||
word CodePreprocessCo, gen_CodePreprocessCo
|
word CodePreprocessCond, gen_CodePreprocessCond
|
||||||
word CodeSpecifiers, gen_CodeSpecifiers
|
word CodeSpecifiers, gen_CodeSpecifiers
|
||||||
word CodeTemplate, gen_CodeTemplate
|
word CodeTemplate, gen_CodeTemplate
|
||||||
word CodeTypename, gen_CodeTypename
|
word CodeTypename, gen_CodeTypename
|
||||||
word CodeTypedef, gen_CodeTypedef
|
word CodeTypedef, gen_CodeTypedef
|
||||||
word CodeUnion, gen_CodeUnion
|
word CodeUnion, gen_CodeUnion
|
||||||
word CodeUsing, gen_CodeUsing
|
word CodeUsing, gen_CodeUsing
|
||||||
word CodeVar, gen_CodeVar
|
word CodeVar, gen_CodeVar
|
||||||
|
|
||||||
// Code Interface
|
// Code Interface
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user