abort/error: print backtrace, abuse templates, overhaul result/diag (macos not done yet)

This commit is contained in:
Michael Scire authored and SciresM committed 2022-03-21 17:21:44 -07:00
1 parent 18168d54c3
commit 646f84bad1
118 files changed
+2843 -369

No files matched your search

@@ -394,7 +394,9 @@ namespace ams::util {
/* Ensure null termination. */
WriteCharacter('\0');
dst[dst_size - 1] = '\0';
if (dst_size > 0) {
dst[dst_size - 1] = '\0';
}
/* Return number of characters that would have been printed sans the null terminator. */
return static_cast<int>(dst_index) - 1;