Fix debug build for iphone
printf() does not have a version that accepts std::string as format string parameter.
This commit is contained in:
parent
66ba19a435
commit
a1a3e79ea5
3 changed files with 4 additions and 4 deletions
2
thirdparty/embree/kernels/common/rtcore.h
vendored
2
thirdparty/embree/kernels/common/rtcore.h
vendored
|
|
@ -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 --
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue