mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Updated license date, tweaked an error message
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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\
|
||||
|
||||
@@ -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?
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user