From 3043ebe21e06b51ea2efbe5e79f606e9a0da36a6 Mon Sep 17 00:00:00 2001 From: InvisibleUp Date: Sat, 1 Apr 2023 18:17:50 -0700 Subject: [PATCH] Add VSCode debug configuration --- .gitignore | 21 ++++++++++++++++----- .vscode/launch.json | 20 ++++++++++++++++++++ .vscode/tasks.json | 23 +++++++++++++++++++++++ src/CFGMAN.h | 1 + 4 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 7a3414a..ea6ffc9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,23 @@ +# Binaries *.exe *.obj -.vscode/* -bld *.dsk *.ROM + +# Visual Studio +.vs/* +.vs/ + +# Visual Studio Code +.vscode/* +!.vscode/launch.json +!.vscode/tasks.json + +# KDevelop 4 *.kdev4 *.pdb + +# Meson build/ -.vs/* -make/ -subprojects/ \ No newline at end of file +subprojects/ +reconfigure/ \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8d5949d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "(Windows) Launch", + "type": "cppvsdbg", + "request": "launch", + "program": "${workspaceFolder}/build/microvmac.exe", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}/build/", + "environment": [], + "console": "externalTerminal", + "preLaunchTask": "${defaultBuildTask}" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..fa3ac29 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,23 @@ +{ + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++: compile with Meson", + "command": "meson", + "args": [ + "compile", + ], + "options": { + "cwd": "${workspaceFolder}/build" + }, + "problemMatcher": [ + "$msCompile" + ], + "group": { + "kind": "build", + "isDefault": true + }, + } + ], + "version": "2.0.0" +} \ No newline at end of file diff --git a/src/CFGMAN.h b/src/CFGMAN.h index bf6c3a7..c4d9959 100644 --- a/src/CFGMAN.h +++ b/src/CFGMAN.h @@ -7,6 +7,7 @@ /* Load or create config and prepare for use */ #pragma once +#include bool Config_TryInit();