hecl/Compilers: Make use of nullptr over NULL

Same behavior, stricter type.
This commit is contained in:
Lioncash 2019-08-23 11:56:34 -04:00
parent d59d453db3
commit 2e16f882d2
1 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ struct ShaderCompiler<PlatformType::Metal> {
pid_t pid = fork();
if (!pid) {
execlp("xcrun", "xcrun", "-sdk", "macosx", "metal", "--version", NULL);
execlp("xcrun", "xcrun", "-sdk", "macosx", "metal", "--version", nullptr);
/* xcrun returns 72 if metal command not found;
* emulate that if xcrun not found */
exit(72);
@ -166,7 +166,7 @@ struct ShaderCompiler<PlatformType::Metal> {
#ifndef NDEBUG
"-gline-tables-only", "-MO",
#endif
"-", NULL);
"-", nullptr);
fmt::print(stderr, fmt("execlp fail {}\n"), strerror(errno));
exit(1);
}
@ -182,7 +182,7 @@ struct ShaderCompiler<PlatformType::Metal> {
close(compilerIn[1]);
/* metallib doesn't like outputting to a pipe, so temp file will have to do */
execlp("xcrun", "xcrun", "-sdk", "macosx", "metallib", "-", "-o", libFile.c_str(), NULL);
execlp("xcrun", "xcrun", "-sdk", "macosx", "metallib", "-", "-o", libFile.c_str(), nullptr);
fmt::print(stderr, fmt("execlp fail {}\n"), strerror(errno));
exit(1);
}