Implement getCallStackFast/Exact for fast call-stack backtrace.

This commit is contained in:
Бранимир Караџић
2025-09-27 12:51:02 -07:00
parent 59d9249854
commit c8128850f8
9 changed files with 908 additions and 69 deletions

View File

@@ -45,7 +45,7 @@ TEST_CASE("StringLiteral", "[string]")
REQUIRE(5 == sv.getLength() );
REQUIRE(5 == bx::strLen(sv) );
REQUIRE(0 == bx::strCmp("abvgd", sv) );
REQUIRE("abvgd" == sv);
}
TEST_CASE("stringPrintfTy", "[string]")
@@ -218,6 +218,19 @@ TEST_CASE("strCmpV sort", "[string][sort]")
}
}
TEST_CASE("overlap", "[string]")
{
const char* test = "The Quick Brown Fox Jumps Over The Lazy Dog.";
const bx::StringView quick = bx::strFind(test, "Quick");
REQUIRE(bx::overlap(quick, test) );
const bx::StringView empty;
REQUIRE(!bx::overlap(quick, empty) );
REQUIRE(!bx::overlap(test, empty) );
}
TEST_CASE("strRFind", "[string]")
{
const char* test = "test";