Skip to content

Commit 47e80d4

Browse files
committed
chore: add ensure example (#115)
1 parent 2b7b613 commit 47e80d4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Content/UI/W_BugSplatDemo.uasset

4.38 KB
Binary file not shown.

Source/BugSplatRuntime/Private/BugSplatUtils.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ void UBugSplatUtils::GenerateAssert()
1515
char *ptr = nullptr;
1616
check(ptr != nullptr);
1717
}
18+
19+
void UBugSplatUtils::GenerateEnsure()
20+
{
21+
UE_LOG(LogTemp, Log, TEXT("BugSplat: GenerateEnsure"));
22+
char* ptr = nullptr;
23+
ensure(ptr != nullptr);
24+
}

Source/BugSplatRuntime/Public/BugSplatUtils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ class BUGSPLATRUNTIME_API UBugSplatUtils : public UBlueprintFunctionLibrary
1717

1818
UFUNCTION(BlueprintCallable, Category = "BugSplat")
1919
static void GenerateAssert();
20+
21+
UFUNCTION(BlueprintCallable, Category = "BugSplat")
22+
static void GenerateEnsure();
2023
};

0 commit comments

Comments
 (0)