Sorry this seems like a noddy question but how do you get the compiler to generate a warning when a certain variable / structure is used?
For example if I have the following code:
int GetAbstractedFoo()
{
return 1;
}
struct new_name
{
int foo;
}
typedef new_name old_name;
How do i do a #warning to say "warning "old_name" is depreciated please use new_name"
and expanding on that further how could is say "warning accessing foo directly has been depreciated please use "abstractedFoo"?
I have had trouble googling this beyond the basic #warning when a header is used.
-Thanks, Chris