From d0c9571be3a2167a9f019310aca8f7cd326972c0 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 22 Jun 2018 13:09:01 -0400 Subject: Expose macros/functionality for defining interfaces (#604) * Added Result definitions to the slang.h * Removed slang-result.h and added slang-com-helper.h * Move slang-com-ptr.h to be publically available. * Add SLANG_IUNKNOWN macros to simplify implementing interfaces. Use the SLANG_IUNKNOWN macros to in slang.c * Removed slang-defines.h added outstanding defines to slang.h --- tools/render-test/surface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/render-test/surface.cpp') diff --git a/tools/render-test/surface.cpp b/tools/render-test/surface.cpp index 4d761389a..eabe555c3 100644 --- a/tools/render-test/surface.cpp +++ b/tools/render-test/surface.cpp @@ -1,4 +1,4 @@ -// surface.cpp +// surface.cpp #include "surface.h" #include @@ -46,7 +46,7 @@ Slang::Result MallocSurfaceAllocator::allocate(int width, int height, Format for uint8_t* data = (uint8_t*)::malloc(totalSize); if (!data) { - return SLANG_E_MEM_OUT_OF_MEMORY; + return SLANG_E_OUT_OF_MEMORY; } surface.m_data = data; -- cgit v1.2.3