From 16d900d3e8341663e53cb1f4c719578e12df829d Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 24 Oct 2014 22:35:51 +0000 Subject: added some comments to the Variant class (not done yet), moved VarNull to Variant::Null git-svn-id: file:///var/local/svn/basicwriter@76 daaaf23c-2e50-4459-9457-1e69db5a47bf --- test/core/script/Function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/core/script') diff --git a/test/core/script/Function.cpp b/test/core/script/Function.cpp index cd6bd84..39dd9ce 100644 --- a/test/core/script/Function.cpp +++ b/test/core/script/Function.cpp @@ -28,7 +28,7 @@ TEST(HostFunction, callDirect) int v = 0; HostFunction f{[](const std::vector &args, void *data) { *(static_cast(data)) = args[0].getIntegerValue(); - return VarNull; + return Variant::Null; }, {Argument{VariantType::integer}}, &v}; ASSERT_EQ(VariantType::null, f.call({{(int64_t)42}}).getType()); ASSERT_EQ(42, v); -- cgit v1.2.3