Scripting: Let mScriptContextAttachLogger take NULL for logger

This commit is contained in:
Vicki Pfau 2025-01-02 01:14:11 -08:00
parent 3c59429d96
commit eb5fc371ff
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ static struct mScriptConsole* _ensureConsole(struct mScriptContext* context) {
void mScriptContextAttachLogger(struct mScriptContext* context, struct mLogger* logger) {
struct mScriptConsole* console = _ensureConsole(context);
console->logger = logger;
console->logger = logger ? logger : mLogGetContext();
}
void mScriptContextDetachLogger(struct mScriptContext* context) {