From 54687d0794ea22f178d82ca81f062c92206d19f9 Mon Sep 17 00:00:00 2001 From: lyon Date: Mon, 23 Aug 2021 15:13:03 +0800 Subject: [PATCH] add c_cpp confitg --- .vscode/c_cpp_properties.json | 18 ++++++++++++++++++ commit.sh | 1 + .../pikascript-lib/PikaStdLib_SysObj.c | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .vscode/c_cpp_properties.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 000000000..4eb3617fe --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**", + "${workspaceFolder}/src/package/pikascript/pikascript-api/**", + "${workspaceFolder}/src/package/pikascript/pikascript-core/**" + ], + "defines": [], + "compilerPath": "/usr/bin/clang", + "cStandard": "c99", + "cppStandard": "c++14", + "intelliSenseMode": "linux-clang-x64", + } + ], + "version": 4 +} \ No newline at end of file diff --git a/commit.sh b/commit.sh index 9be5bb9ae..0ad376861 100644 --- a/commit.sh +++ b/commit.sh @@ -5,6 +5,7 @@ git commit cd $ROOT git add * git add .vscode/launch.json +git add .vscode/c_cpp_properties.json git add .gitignore git commit diff --git a/src/package/pikascript/pikascript-lib/PikaStdLib_SysObj.c b/src/package/pikascript/pikascript-lib/PikaStdLib_SysObj.c index b3cfadaa4..3748331c5 100644 --- a/src/package/pikascript/pikascript-lib/PikaStdLib_SysObj.c +++ b/src/package/pikascript/pikascript-lib/PikaStdLib_SysObj.c @@ -1,4 +1,4 @@ -#include "../pikascript-core/PikaObj.h" +#include "PikaObj.h" void PikaStdLib_SysObj_ls(PikaObj *self, char *objPath) {