Updated license date, tweaked an error message

This commit is contained in:
2025-01-14 13:23:23 +11:00
parent 513d8f130c
commit 730353342d
4 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
Copyright (c) 2020-2024 Kayne Ruse, KR Game Studios
Copyright (c) 2020-2025 Kayne Ruse, KR Game Studios
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages

View File

@@ -178,7 +178,7 @@ void versionCmdLine(int argc, const char* argv[]) {
//copy/pasted from the license file - there's a way to include it directly, but it's too finnicky to bother
const char* license = "\
Copyright (c) 2020-2024 Kayne Ruse, KR Game Studios\n\
Copyright (c) 2020-2025 Kayne Ruse, KR Game Studios\n\
\n\
This software is provided 'as-is', without any express or implied\n\
warranty. In no event will the authors be held liable for any damages\n\

View File

@@ -17,3 +17,4 @@ TOY_API void Toy_resetPrintCallback(void);
TOY_API void Toy_resetErrorCallback(void);
TOY_API void Toy_resetAssertFailureCallback(void);
//TODO: rename print.h to debug?

View File

@@ -153,7 +153,7 @@ void Toy_assignScope(Toy_Scope* scope, Toy_String* key, Toy_Value value) {
//constness check
if (Toy_getNameStringVarConstant( TOY_VALUE_AS_STRING(entryPtr->key) )) {
char buffer[key->info.length + 256];
sprintf(buffer, "Can't assign to const %s", key->name.data);
sprintf(buffer, "Can't reassign to constant variable %s", key->name.data);
Toy_error(buffer);
return;
}