pragma semicolon
#1

Hi there. I was just reading through the pawn-lang.pdf, and I noticed a certain function: #pragma semicolon It said that when the value's set to 0 like #pragma semicolon 0, you don't have to use semicolons on one line functions, like instead of:

pawn Код:
if(pie == 1)
{
  SomeFunction(playerid);
}
you can do

pawn Код:
if(pie == 1) SomeFunction(playerid)
I was just wondering, what would be the advantages and disadvantages of this?
Reply
#2

Setting semicolon to zero (as I always do) has no disadvantages. It's technically (more) valid PAWN seeing how all the tutorials are all written in colon-less expressions. Now if there was a pragma to make it as similiar to the lang.pdf, where you can do:

pawn Код:
main()
{
  printf "%s", "hai"
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)