I want to call the same variable with a different name, how can I assign it an alias?
Do I stick to using a macro, like
#DEFINE Variable Alias
In summary:
- I prefer to apply it in C
- I have a signal which can be more than one type of variable (temperature, distance, etc..)
- I want to assign more than one alias to that signal
I'm currently doing it in C using functions as the method for renaming.
So given the variable: int signal
I'd do the following
int Temperature(){return signal;}