Closed Jademalo closed 3 years ago
Small change to add (__INTELLISENSE__) to fix compatibility with VSCode.
(__INTELLISENSE__)
__INTELLISENSE__ is defined when using both Visual Studio and VSCode. It's mentioned here, specifically to be used for this sort of thing - https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-160#microsoft-specific-predefined-macros
__INTELLISENSE__
Since IntelliSense is the thing that causes the errors on both Visual Studio and VSCode, this should fix all of the function call is not allowed in a constant expressionC/C++(59) for both of them.
function call is not allowed in a constant expressionC/C++(59)
Jademalo#3486
I wonder why this change also included a style change... (and I also wonder why I'm randomly looking at a pokeruby PR)
Small change to add
(__INTELLISENSE__)
to fix compatibility with VSCode.Description
__INTELLISENSE__
is defined when using both Visual Studio and VSCode. It's mentioned here, specifically to be used for this sort of thing - https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-160#microsoft-specific-predefined-macrosSince IntelliSense is the thing that causes the errors on both Visual Studio and VSCode, this should fix all of the
function call is not allowed in a constant expressionC/C++(59)
for both of them.Discord contact info
Jademalo#3486