update based on PR feedback

Signed-off-by: greerdv <greerdv@amazon.com>
This commit is contained in:
greerdv
2021-07-01 13:35:57 +01:00
parent 88615f462c
commit 05a2ce4fe1
2 changed files with 4 additions and 2 deletions
@@ -36,8 +36,8 @@ namespace AzPhysics
void CollisionGroupScriptConstructor(CollisionGroup* thisPtr, AZ::ScriptDataContext& scriptDataContext)
{
int numArgs = scriptDataContext.GetNumArguments();
if (numArgs != 1)
if (int numArgs = scriptDataContext.GetNumArguments();
numArgs != 1)
{
scriptDataContext.GetScriptContext()->Error(AZ::ScriptContext::ErrorType::Error, true,
"CollisionGroup() accepts only 1 argument, not %d", numArgs);
@@ -34,6 +34,8 @@ namespace PhysX
return AZ::EntityId();
}
// this allows EXPECT_TRUE to be exposed to the behavior context and used inside blocks of lua code which
// are executed in tests
void ExpectTrue(bool check)
{
EXPECT_TRUE(check);