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

Just a question not really related to anything.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spazman0
Member
Join Date: Jul 2008
Old 07-17-2008 , 21:44   Just a question not really related to anything.
Reply With Quote #1

Looking through quite a bit of source for plugins, it seems that alot of them have "#pragma semicolon 1" at the beginning. I was just wondering, what is this used for and in what instance would I need to have it in my source?
Spazman0 is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-17-2008 , 21:47   Re: Just a question not really related to anything.
Reply With Quote #2

It's not required for anything, basically it just tells the compiler to check to make sure there is a semicolon after every line, and if not it will error and tell you.

Some people prefer to use semicolons, some don't.
__________________
Greyscale is offline
Kigen
BANNED
Join Date: Feb 2008
Old 07-17-2008 , 21:58   Re: Just a question not really related to anything.
Reply With Quote #3

Semicolons are used in many other languages. So it becomes habit for some. Like me.
Kigen is offline
Spazman0
Member
Join Date: Jul 2008
Old 07-17-2008 , 22:01   Re: Just a question not really related to anything.
Reply With Quote #4

Ah ok, seems fair enough. Yeah, semicolons are used in most languages I have used and I was surprised that they weren't in SourcePawn. Thanks for the quick answer
Spazman0 is offline
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 18:04.


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