diff --git a/project/components/inlines.hpp b/project/components/inlines.hpp index eff9d64..c33819e 100644 --- a/project/components/inlines.hpp +++ b/project/components/inlines.hpp @@ -134,7 +134,7 @@ Code begin( CodeBody body) { } inline Code end(CodeBody body ){ - return { rcast(AST*, body.ast)->Back->Next }; + return { nullptr }; } #pragma endregion CodeBody diff --git a/project/components/parser.cpp b/project/components/parser.cpp index 4e55d9f..ab21a61 100644 --- a/project/components/parser.cpp +++ b/project/components/parser.cpp @@ -3893,11 +3893,11 @@ CodeFriend parse_friend() // if ( params ) // function->Params = params; } - + // Operator declaration or definition if ( currtok.Type == Tok_Decl_Operator ) { - op = parse_operator_after_ret_type( ModuleFlag_None, NullCode, type ); + op = parse_operator_after_ret_type( ModuleFlag_None, NullCode, NullCode, type ); } CodeComment inline_cmt = NullCode; diff --git a/project/dependencies/strings.hpp b/project/dependencies/strings.hpp index ddfc7a9..f7c98b9 100644 --- a/project/dependencies/strings.hpp +++ b/project/dependencies/strings.hpp @@ -32,8 +32,8 @@ struct StrC StrC duplicate (AllocatorInfo allocator) const { return GEN_NS duplicate(* this, allocator); } b32 starts_with (StrC substring) const { return GEN_NS starts_with(* this, substring); } StrC visualize_whitespace(AllocatorInfo allocator) const { return GEN_NS visualize_whitespace(* this, allocator); } -#endif // GEN_SUPPORT_CPP_MEMBER_FUNCTIONS -#endif // GEN_COMPILERC +#endif +#endif }; #define cast_to_strc( str ) * rcast( StrC*, (str) - sizeof(ssize) )