mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 07:44:45 -08:00
bug fix
This commit is contained in:
parent
a3548a5bd3
commit
6081834687
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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) )
|
||||
|
Loading…
Reference in New Issue
Block a user