Initial commit

This commit is contained in:
Attila Body 2025-06-01 19:20:28 +02:00
commit 5ee5c5cb2e
Signed by: abody
GPG key ID: BD0C6214E68FB5CF
9 changed files with 461 additions and 0 deletions

25
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,25 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug RingBufferTest",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/ringbuffer_test", // Adjust path if your build directory is different
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"environment": [],
"externalConsole": false,
"MIMode": "gdb", // Or "lldb" if you're on macOS/Linux and prefer lldb
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build_debug" // This task will build your project before debugging
}
]
}

58
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,58 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "configure_debug",
"type": "shell",
"command": "cmake -B ${workspaceFolder}/build -S ${workspaceFolder} -DCMAKE_BUILD_TYPE=Debug",
"group": "build",
"presentation": {
"reveal": "silent",
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "build_debug",
"type": "shell",
"command": "cmake --build ${workspaceFolder}/build --config Debug",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": "configure_debug",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": [
"$gcc" // Or "$msCompile" for MSVC
]
},
{
"label": "configure_release",
"type": "shell",
"command": "cmake -B ${workspaceFolder}/build -S ${workspaceFolder} -DCMAKE_BUILD_TYPE=Release",
"group": "build",
"presentation": {
"reveal": "silent",
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "build_release",
"type": "shell",
"command": "cmake --build ${workspaceFolder}/build --config Release",
"group": "build",
"dependsOn": "configure_release",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": [
"$gcc"
]
}
]
}