diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-01-19 23:01:06 +0200 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-01-22 18:47:43 +0200 |
commit | fee2dc981cb15c54cacd63f778f106ff93a85796 (patch) | |
tree | e08babb6862cff7d5ef4d94fb7ab87d92e82e131 /indra/newview/llappviewermacosx-objc.mm | |
parent | 337a2356a923ab5a3ac99c3adf81101084926179 (diff) |
NSException test
Diffstat (limited to 'indra/newview/llappviewermacosx-objc.mm')
-rw-r--r-- | indra/newview/llappviewermacosx-objc.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llappviewermacosx-objc.mm b/indra/newview/llappviewermacosx-objc.mm index 17301847e8..5d9ca24db2 100644 --- a/indra/newview/llappviewermacosx-objc.mm +++ b/indra/newview/llappviewermacosx-objc.mm @@ -71,3 +71,9 @@ void launchApplication(const std::string* app_name, const std::vector<std::strin [pool release]; return; } + +void force_ns_sxeption() +{ + NSException *exception = [NSException exceptionWithName:@"Forced NSException" reason:nullptr userInfo:nullptr]; + @throw exception; +} |