Raised This Month: $32 Target: $400
 8% 

[TUT] The Preprocessor (#if, #include, #pragma, etc.)


Post New Thread Reply   
 
Thread Tools Display Modes
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 11-03-2006 , 12:42   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #11

nice tutorial hawk ,thx
I am going to optimize my plugins..
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
Old 11-03-2006, 12:45
Nostrodamous
This message has been deleted by Brad. Reason: immature off-topicness
Old 11-03-2006, 12:48
Rolnaaba
This message has been deleted by Brad. Reason: immature off-topicness
Old 11-03-2006, 12:53
Nostrodamous
This message has been deleted by Brad. Reason: banbanbanbanbanbanban please?
BAILOPAN
Join Date: Jan 2004
Old 11-03-2006 , 13:14   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #12

Just a note: The reason buffer overflows are caused is because AMX Mod X treats the size as the max number of characters, terminator not included.

Almost every other application, library, and language on the planet includes the terminator. So before you carry this idiosyncrasy to other languages, check your docs first!
__________________
egg
BAILOPAN is offline
Old 11-05-2006, 18:13
Lord_Destros
This message has been deleted by Lord_Destros. Reason: Nice tutorial.
Drak
Veteran Member
Join Date: Jul 2005
Old 11-12-2006 , 16:25   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #13

Whoops, nevermind. I had something missing..
__________________
Oh yeah

Last edited by Drak; 11-12-2006 at 16:29.
Drak is offline
Send a message via MSN to Drak
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 11-21-2006 , 03:43   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #14

I've read Spawn manual but did not found how i can disable specified warning by its ID. E.g. i want do disable warning 226: a variable is assigned to itself. #pragma warn not working.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
VEN
Veteran Member
Join Date: Jan 2005
Old 11-21-2006 , 06:10   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #15

It's "Pawn", not "Spawn".
There is no "warn" pragma.
You can control warnings output by -w compiler option, for example:
Code:
amxxpc.exe source.sma -w226-
VEN is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 11-21-2006 , 06:43   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #16

Quote:
Originally Posted by VEN View Post
It's "Pawn", not "Spawn".
There is no "warn" pragma.
You can control warnings output by -w compiler option, for example:
Code:
amxxpc.exe source.sma -w226-
Yeah, Pawn aka Small =)

This method is not good for distributing the source code. Anyway, thanx.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-21-2006 , 12:29   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #17

You could put in a request for #pragma warn in Bug Reports/Feature requests.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-21-2006 , 14:56   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #18

I bet that Bail will say to ask CompuPhase.
VEN is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-21-2006 , 20:42   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #19

Maybe. It may mostly depend on the diffuclty of it.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
jRaven
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
Old 11-26-2006 , 01:06   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #20

Nice work, Hawk! Very useful.
jRaven is offline
Send a message via ICQ to jRaven Send a message via AIM to jRaven
Reply


Thread Tools
Display Modes

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 02:20.


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