From a1a3e79ea51622e00cbe8c4f7a94f1f2a44e4953 Mon Sep 17 00:00:00 2001 From: Gergely Kis Date: Mon, 22 Nov 2021 18:05:24 +0100 Subject: Fix debug build for iphone printf() does not have a version that accepts std::string as format string parameter. --- thirdparty/embree/kernels/common/rtcore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thirdparty/embree/kernels') diff --git a/thirdparty/embree/kernels/common/rtcore.h b/thirdparty/embree/kernels/common/rtcore.h index 373e49a689..f8aad7c7cb 100644 --- a/thirdparty/embree/kernels/common/rtcore.h +++ b/thirdparty/embree/kernels/common/rtcore.h @@ -126,7 +126,7 @@ namespace embree // #define throw_RTCError(error,str) \ // throw rtcore_error(error,std::string(__FILE__) + " (" + toString(__LINE__) + "): " + std::string(str)); #define throw_RTCError(error,str) \ - printf(std::string(__FILE__) + " (" + toString(__LINE__) + "): " + std::string(str)), abort(); + printf("%s (%d): %s", __FILE__, __LINE__, std::string(str).c_str()), abort(); // -- GODOT end -- #else // -- GODOT begin -- -- cgit v1.2.3