Helper: Return object depending on current process platform
(win32: A, darwin: B, other: C)
| 29 | |
| 30 | /** Helper: Return object depending on current process platform */ |
| 31 | function platformChoose<A, B, C>(win32: A, darwin: B, other: C): A | B | C { |
| 32 | return process.platform === 'win32' ? win32 : |
| 33 | process.platform === 'darwin' ? darwin : |
| 34 | other; |
| 35 | } |
| 36 | |
| 37 | // See: https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference |
| 38 | async function generateCppPropertiesProc(workspaceFolder: string) { |
no outgoing calls
no test coverage detected