Darkyenus / glsl4idea

A GLSL language plugin for IntelliJ IDEA
GNU Lesser General Public License v3.0
100 stars 30 forks source link

Problem with definitions with arguments #124

Closed lamerman closed 2 years ago

lamerman commented 7 years ago

I have definition with multiple arguments. Every usage of this definition is marked as error in IDEA, though the compiler compiles it without errors.

#define SET_BIT(bitIndex, resultArray, isLess) \
    if (isLess) { resultArray[bitIndex/32U] |= 1U << (bitIndex % 32U); } \
    bitIndex++

This is an example of such definition

Darkyenus commented 7 years ago

Function #defines are sadly not yet supported. You can disable error checking to get at least some highlighting out of the plugin by clicking the face in the bottom right corner.

Darkyenus commented 2 years ago

Duplicate of #144. (Yes, it is the other way around, but that one has better name.)