protected override TransformationResult TransformFunction(TransformationContext context, TranslatedFunction declaration)
        {
            TransformationResult result = declaration;

            if (declaration.Name == "DebugCheckVersionAndDataLayout")
            {
                if (IMGUI_VERSION is not null)
                {
                    result.Add(IMGUI_VERSION);
                }

                if (IMGUI_VERSION_NUM is not null)
                {
                    result.Add(IMGUI_VERSION_NUM);
                }
            }

            return(result);
        }
Beispiel #2
0
        public void HasNotNullDestination_NoNotNullItems_ReturnFalse()
        {
            _transformationResult.Add(null);
            _transformationResult.Add(null);

            var result = _transformationResult.HasNotNullDestination();

            Assert.IsFalse((bool)result);
        }