AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved Sourcemod #pragma List (https://forums.alliedmods.net/showthread.php?t=332527)

tpr 05-17-2021 14:11

Sourcemod #pragma List
 
Hi,

Could Anyone List All of the #pragma in Sourcemod ?


I know these :

#pragma semicolon 1
#pragma tabsize 0
#pragma newdecls optional
#pragma newdecls required

Maxximou5 05-17-2021 14:30

Re: Sourcemod #pragma List
 
There's this - https://github.com/alliedmodders/sou....cpp#L914-L998

tpr 05-17-2021 18:05

Re: Sourcemod #pragma List
 
Quote:

Originally Posted by Maxximou5 (Post 2747093)

Thanks Dude.


Pragma Lists For Who Needs :

#pragma ctrlchar
#pragma deprecated
#pragma dynamic
#pragma rational
#pragma semicolon
#pragma newdecls
#pragma tabsize
#pragma unused


And See Error and warning messages

Dragokas 05-20-2021 12:06

Re: Sourcemod #pragma List
 
What is the purpose of #pragma rational ?

--
PS. Here is a link with a description of all other one: [Урок] Директивы препроцессора

BAILOPAN 05-20-2021 12:41

Re: Sourcemod #pragma List
 
Upstream Pawn (kind of, I doubt it's tested and working) lets you specify how fractional numbers work. You can pick between "float" and "fixed". We stripped this out to make the compiler simpler, and because support for this shouldn't be mutually exclusive anyway.

FroGeX 05-20-2021 22:14

Re: Sourcemod #pragma List
 
Quote:

Originally Posted by BAILOPAN (Post 2747347)
Upstream Pawn (kind of, I doubt it's tested and working) lets you specify how fractional numbers work. You can pick between "float" and "fixed". We stripped this out to make the compiler simpler, and because support for this shouldn't be mutually exclusive anyway.

Omg he is alive O.o

Darkwob 05-27-2021 11:35

Re: Sourcemod #pragma List
 
So what's the point of this #pragma? and what values ​​used in pragma, such as "semicolon 1", mean.

tpr 05-31-2021 18:03

Re: Sourcemod #pragma List
 
Quote:

Originally Posted by Darkwob (Post 2747956)
So what's the point of this #pragma? and what values ​​used in pragma, such as "semicolon 1", mean.

explained here as a friend wrote upper :

PS. Here is a link with a description of all other one: [Урок] Директивы препроцессора


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

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