mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Fixed logical AND and OR operators, read more
The definition of '&&': Return the first falsy value, or the last value, skipping the evaluation of other operands. The definition of '||': Return the first truthy value, or the last value, skipping the evaluation of other operands. Toy now follows these definitions. Fixed #154
This commit is contained in:
@@ -11,6 +11,7 @@ typedef struct Toy_Stack { //32 | 64 BITNESS
|
||||
|
||||
TOY_API Toy_Stack* Toy_allocateStack(void);
|
||||
TOY_API void Toy_freeStack(Toy_Stack* stack);
|
||||
TOY_API void Toy_resetStack(Toy_Stack** stackHandle);
|
||||
|
||||
TOY_API void Toy_pushStack(Toy_Stack** stackHandle, Toy_Value value);
|
||||
TOY_API Toy_Value Toy_peekStack(Toy_Stack** stackHandle);
|
||||
|
||||
Reference in New Issue
Block a user