STRINGIFY error: invalid preprocessing directive

I am trying to use STRINIFY to for my shader code…

my shader code with out error if I am using it as separated file but I gut problem if I use STRINGIFY

how to fixed this?

STRINGIFY is not a standard keyword is something that people use to do this kind of multiline strings so if you don’t define it you’ll get errors.

A better way to do this is to use:

string shader = R"(
#version 120