alliedmodders / amxmodx

AMX Mod X - Half-Life 1 Scripting and Administration
http://www.amxmodx.org/
496 stars 198 forks source link

Add pragma for ignore "break;" on switch #1047

Open Roccoxx opened 2 years ago

Roccoxx commented 2 years ago

Hello, I would like to suggest the implementation of a #pragma to be able to write "break;" inside a switch and then be ignored by the compiler. This is very helpful for people who program in other languages and must put the "break;" inside a switch (depending on the case). We know that in pawn it is not necessary to do it because the switch behavior is different from other more used languages, but it would be quite useful as an optional feature.