diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-03-17 19:19:16 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-17 18:19:16 -0400 |
| commit | d698b97d02380b3bf2c898de44941d03e37daff4 (patch) | |
| tree | 86a6928ad6d012cbf16c4839bd47312a7c1d207b /ZAPD/ZArray.cpp | |
| parent | b25eb9a568b4dd0dbc5c2fea3d9e85ca69e21aa2 (diff) | |
Add new resource ZSymbol (#92)
* ZSymbol
Signed-off-by: Angie <angheloalf95@gmail.com>
* Add array support to ZSymbol
Signed-off-by: Angie <angheloalf95@gmail.com>
* Export symbol as array
Signed-off-by: Angie <angheloalf95@gmail.com>
* Final cleanup
Signed-off-by: Angie <angheloalf95@gmail.com>
* Ups, forgot the offset in a constructor
Signed-off-by: Angie <angheloalf95@gmail.com>
Diffstat (limited to 'ZAPD/ZArray.cpp')
| -rw-r--r-- | ZAPD/ZArray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ZAPD/ZArray.cpp b/ZAPD/ZArray.cpp index 622aef5..4be7656 100644 --- a/ZAPD/ZArray.cpp +++ b/ZAPD/ZArray.cpp @@ -31,7 +31,7 @@ std::string ZArray::GetSourceOutputCode(const std::string& prefix) if (!res->DoesSupportArray()) { - throw StringHelper::Sprintf("Error! Resource %s does not support being wrapped in an array!\n", res->GetName().c_str()); + throw std::runtime_error(StringHelper::Sprintf("Error! Resource %s does not support being wrapped in an array!\n", res->GetName().c_str())); } for (int i = 0; i < arrayCnt; i++) |
