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
Code end(CodeBody body ){
return { rcast(AST*, body.ast)->Back->Next };
return { nullptr };
}
#pragma endregion CodeBody

View File

@ -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;

View File

@ -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) )