pret / pokeruby

Decompilation of Pokémon Ruby/Sapphire
799 stars 225 forks source link

Improve IDE Support #839

Closed Jademalo closed 3 years ago

Jademalo commented 3 years ago

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-macros

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.

Discord contact info

Jademalo#3486

aaaaaa123456789 commented 3 years ago

I wonder why this change also included a style change... (and I also wonder why I'm randomly looking at a pokeruby PR)