Sign in to follow this  
deks

.NET __attribute__((used)) equivalent?

Recommended Posts

deks    209
Hiya, Is there an equivalent in Visual Studio .NET for __attribute__((used))? I'm writing my own RTTI stuff, and visual seems to remove some of my static variables. Thanks. =[dEkS]=

Share this post


Link to post
Share on other sites
deks    209
Maybe I wasn't clear enough. I want to know if there's a way to tell VC7 compiler that a static variable should be kept and constructed, even if it thinks it's not used.

Thanks.
=[dEkS]=

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this