This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Mac", | |
"includePath": [ | |
"/usr/include", | |
"/usr/local/include", | |
"${workspaceRoot}", | |
"${workspaceRoot}/include" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasedOnStyle: Mozilla | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: true | |
BinPackParameters: false | |
Cpp11BracedListStyle: true | |
IncludeCategories: | |
- Regex: '^("|<)catch\.hpp' | |
Priority: 4 | |
- Regex: '^(<[a-z0-9_]*>)' | |
Priority: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying | |
# file Copyright.txt or https://cmake.org/licensing for details. | |
# | |
# Author: [talesm](https://github.com/talesm) | |
#.rst: | |
# FindSDL2 | |
# ------- | |
# | |
# Looks for SDL and its most used satellite libraries. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#region dataStack | |
function createStack() { | |
/** @type {number[]} */ | |
const stack = [] | |
return { | |
push: val => stack.push(val | 0), // |0 ensures int32 | |
pop: () => stack.pop(), | |
size: () => stack.length, | |
top: () => stack[stack.length - 1], | |
dump: () => stack.map(v => v), |