Raised This Month: $ Target: $400
 0% 

[req] #pragma deprecated


  
 
 
Thread Tools Display Modes
Author Message
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 11-22-2006 , 03:09   [req] #pragma deprecated
#1

Can you port the #pragma deprecated from the compuphase compiler to the amxx compiler?

regards
Greenberet
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
Ingram
Veteran Member
Join Date: May 2004
Old 11-22-2006 , 04:14   Re: [req] #pragma deprecated
#2

I'm confused... are you trying to create warnings? or does that create errors? Why would you have deprecated code?
Ingram is offline
juKay
Member
Join Date: Mar 2004
Location: Sweden
Old 11-22-2006 , 08:17   Re: [req] #pragma deprecated
#3

It will create a warning to tell you that the identifier might not be avaiable in future versions. The syntax from C/C++ is, I'm guessing that compuphase's compiler works the same:

#pragma deprecated(identifier [,identifier...]);

This is actually a good idea, maybe even extend it so that you can send a custom message like telling the user what new identifier they should use.
juKay is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode