This commit is contained in:
Edward R. Gonzalez 2024-12-03 20:42:35 -05:00
parent a3548a5bd3
commit 6081834687
3 changed files with 5 additions and 5 deletions

View File

@ -134,7 +134,7 @@ Code begin( CodeBody body) {
} }
inline inline
Code end(CodeBody body ){ Code end(CodeBody body ){
return { rcast(AST*, body.ast)->Back->Next }; return { nullptr };
} }
#pragma endregion CodeBody #pragma endregion CodeBody

View File

@ -3897,7 +3897,7 @@ CodeFriend parse_friend()
// Operator declaration or definition // Operator declaration or definition
if ( currtok.Type == Tok_Decl_Operator ) 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; CodeComment inline_cmt = NullCode;

View File

@ -32,8 +32,8 @@ struct StrC
StrC duplicate (AllocatorInfo allocator) const { return GEN_NS duplicate(* this, allocator); } StrC duplicate (AllocatorInfo allocator) const { return GEN_NS duplicate(* this, allocator); }
b32 starts_with (StrC substring) const { return GEN_NS starts_with(* this, substring); } 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); } StrC visualize_whitespace(AllocatorInfo allocator) const { return GEN_NS visualize_whitespace(* this, allocator); }
#endif // GEN_SUPPORT_CPP_MEMBER_FUNCTIONS #endif
#endif // GEN_COMPILERC #endif
}; };
#define cast_to_strc( str ) * rcast( StrC*, (str) - sizeof(ssize) ) #define cast_to_strc( str ) * rcast( StrC*, (str) - sizeof(ssize) )