diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-15 02:41:11 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-15 02:41:11 +0000 |
| commit | c4565386553ea86308a9487650d2435804893ed0 (patch) | |
| tree | eae3556d3a1e05b3f91b13b218cab3a72eb3bbef /include/cps/FileHandler.h | |
| parent | ab86ae0284469a9a941f5b196f9cc99a90305e3a (diff) | |
fix(codegen): restore runtime diagnostics before throwing
Reuse historical runtime messages and source-line reporting for arithmetic,
array, enum, pointer and file checks while preserving anonymous exceptions.
Update the manuals and subsystem guidance to describe diagnostic output.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/FileHandler.h')
| -rw-r--r-- | include/cps/FileHandler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cps/FileHandler.h b/include/cps/FileHandler.h index 8b8ddf4..50593de 100644 --- a/include/cps/FileHandler.h +++ b/include/cps/FileHandler.h @@ -38,6 +38,10 @@ class FileHandler { llvm::Value *ModeReadStr = nullptr, *ModeWriteStr = nullptr, *ModeAppendStr = nullptr; + llvm::Value *ErrOpenFail = nullptr, *ErrAlreadyOpen = nullptr, *ErrTableFull = nullptr, + *ErrNotOpen = nullptr, *ErrNotRead = nullptr, *ErrNotWrite = nullptr, + *ErrPastEof = nullptr; + // synthesized helpers (internal linkage; pseudocode identifiers cannot // start with '_', so these names are un-collidable) llvm::Function *FindFn = nullptr, *OpenFn = nullptr, *ReadFn = nullptr, |
