Common header file for C++ and JavaScipt
- by paperjam
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…