I have an app that runs a C++ server backend and Javascript on the client.  I would like to define certain strings once only, for both pieces of code.  For example, I might have a CSS class row-hover - I want to define this class name in one place only in case I change it later.Is there an easy way to include, or read, some sort of common definitions file into both C++ and JavaScript?  Ideally as a compile / preprocessing step but any neat approach good.
Common header file for C++ and JavaScipt
c++;javascript;headers;definition