From 2c32d80729ab5fb34bf2d25ae4677e9e5844b47b Mon Sep 17 00:00:00 2001 From: Dmitri Granetchi Date: Mon, 22 Jun 2015 22:46:37 +0300 Subject: [PATCH] check rtti availability --- test/InlineTest.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/InlineTest.hx b/test/InlineTest.hx index 91f02fc..148aa9e 100644 --- a/test/InlineTest.hx +++ b/test/InlineTest.hx @@ -27,7 +27,7 @@ class InlineTest extends BuddySuite { var rtti = new XmlParser().processElement(Xml.parse(rttiData).firstChild()); cd = switch (rtti) { case TClassdecl(c): c; case _: null; }; #else - cd = Rtti.getRtti(BindableInline); + cd = Rtti.hasRtti(BindableInline) ? Rtti.getRtti(BindableInline) : null; #end });