Swapped some if-checks for asserts, closes #161

Thanks 'devast8a' on discord
This commit is contained in:
2024-12-26 13:09:21 +11:00
parent 9cb138a7d6
commit 3ca816439e
4 changed files with 24 additions and 74 deletions

View File

@@ -63,7 +63,7 @@ TOY_API void Toy_freeString(Toy_String* str);
TOY_API unsigned int Toy_getStringLength(Toy_String* str);
TOY_API unsigned int Toy_getStringRefCount(Toy_String* str);
TOY_API Toy_ValueType Toy_getNameStringVarType(Toy_String* str);
TOY_API Toy_ValueType Toy_getNameStringVarConstant(Toy_String* str);
TOY_API bool Toy_getNameStringVarConstant(Toy_String* str);
TOY_API char* Toy_getStringRawBuffer(Toy_String* str); //allocates the buffer on the heap, needs to be freed