diff options
| author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-03-11 11:28:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-11 11:28:25 -0400 |
| commit | 33c7c78b1c65c375d0291fd435e02ddc9d35681b (patch) | |
| tree | 25646d98b4bfcf4b9a664eabfc2651c481984c1d /src/utils/response.cc | |
| parent | 66edce63597093cf5f3afa5b577fd9e3ecae0ef6 (diff) | |
| parent | 202f9a05d449ddc1160584c4e8a87f397f248e94 (diff) | |
Merge pull request #23 from bdunahu/bdunahu
Memory simulator CLI function implementation
Diffstat (limited to 'src/utils/response.cc')
| -rw-r--r-- | src/utils/response.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/response.cc b/src/utils/response.cc new file mode 100644 index 0000000..def6578 --- /dev/null +++ b/src/utils/response.cc @@ -0,0 +1,8 @@ +#include "response.h" +#include <iostream> + +std::ostream &operator<<(std::ostream &os, Response r) +{ + const std::string nameR[] = {"OK", "WAIT", "BLOCKED"}; + return os << nameR[r]; +} |
