mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Replace NULL with nullptr (#1321)
This commit is contained in:
@@ -106,7 +106,7 @@ optional: %empty { $$ = false; }
|
||||
%%
|
||||
|
||||
#define scriptError(context, fmt, ...) \
|
||||
::error(NULL, 0, "%s(%" PRIu32 "): " fmt, \
|
||||
::error(nullptr, 0, "%s(%" PRIu32 "): " fmt, \
|
||||
context.path.c_str(), context.lineNo __VA_OPT__(,) __VA_ARGS__)
|
||||
|
||||
// Lexer.
|
||||
@@ -577,7 +577,7 @@ void script_ProcessScript(char const *path) {
|
||||
auto &newContext = lexerStack.emplace_back(std::string(path));
|
||||
|
||||
if (!newContext.file.open(newContext.path, std::ios_base::in)) {
|
||||
error(NULL, 0, "Failed to open linker script \"%s\"", newContext.path.c_str());
|
||||
error(nullptr, 0, "Failed to open linker script \"%s\"", newContext.path.c_str());
|
||||
lexerStack.clear();
|
||||
} else {
|
||||
yy::parser linkerScriptParser;
|
||||
|
||||
Reference in New Issue
Block a user