Skip to content

Commit

Permalink
Optimize struct copies
Browse files Browse the repository at this point in the history
  • Loading branch information
drmortalwombat committed Oct 29, 2023
1 parent 75301fa commit 1d4eb70
Show file tree
Hide file tree
Showing 7 changed files with 310 additions and 52 deletions.
2 changes: 0 additions & 2 deletions oscar64/Errors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ void Errors::Error(const Location& loc, ErrorID eid, const char* msg, const char
fprintf(stderr, "%s(%d, %d) : %s %d: %s '%s' != '%s'\n", loc.mFileName, loc.mLine, loc.mColumn, level, eid, msg, info1, info2);

if (loc.mFrom)

Error(*(loc.mFrom), EINFO_EXPANDED, "While expanding here");

if (mErrorCount > 10 || eid >= EFATAL_GENERIC)
exit(20);
}



1 change: 1 addition & 0 deletions oscar64/Errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ enum ErrorID
{
EINFO_GENERIC = 1000,
EINFO_EXPANDED = 1001,
EINFO_ORIGINAL_DEFINITION = 1002,

EWARN_GENERIC = 2000,
EWARN_CONSTANT_TRUNCATED,
Expand Down
Loading

0 comments on commit 1d4eb70

Please sign in to comment.