Open julianrendell opened 2 years ago
Hi It's intended to define a function that returns the exact passed literals as c-string.
#define STAG(x) constexpr const char* x##Tag(){ return #x; }
So a STAG(all) call defined a function as following:
constexpr const char* allTag(){ return "all"; }
It's intended to standardize the tags used, and to raise a compilation error if one isn't spelled correctly.
so if happened that someone typed alTag()
, it'll give a compilation error because it's not defined.
I'm working with a student to make an ArtNet service plugin...
We've come across the
STAG
macro- https://github.com/philbowles/h4plugins/search?q=STAGCouple of questions:
H4Service.h
defined? e.g.STAG(age)
- where isage
defined? We've tried searching in files and not found a definition that we understand; I've also tried using Visual Studio Codes and it can't find the definition either ;-)Thanks in advance!