View Single Post
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-03-2006 , 10:19   Re: The Preprocessor (#if, #include, #pragma, etc.)
Reply With Quote #8

Quote:
Originally Posted by Rolnaaba View Post
nice hawk552 very informative, quick question tho.


if you useCode:
#pragma semicolon 1


will thAt setting be saved in compiler and continue to check for semicolon on all plugins created using the compiler or will it stand only for the plugin its in and temporarily search in just that plugin? I think the later is correct but not sure
No, just that plugin.

It's totally useless though, there's no real point in using it unless you really like closing your lines with semicolons and want to be sure you did for that plugin. It's also good to figure out where to put them, since there are some places that you would have to that most people don't know (i.e. in a do-while loop, the while statement should be closed with a semicolon, something most people don't know).
__________________
Hawk552 is offline
Send a message via AIM to Hawk552