Re: SMLIB 0.9 BETA (266 Function Stocks)
When using
PHP Code:
I'm testing in CS:S. I also often use psychonic's improved GetURandomIntRange(min, max) stock you may want to include? |
Re: SMLIB 0.9 BETA (266 Function Stocks)
New smlib update available: smlib 0.9.2 beta
Compatibility breaks: none Changes: Quote:
Quote:
Can you post some example code ? thanks. |
Re: SMLIB 0.9 BETA (266 Function Stocks)
Quote:
|
Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
It would be a lot better if "#include <smlib>" was omitted from the includes, especially since most of them don't require anything from the others. It would also be better if those that do require other includes included only the one they specifically need.
That was you could include only those headers that you want to actually use without having to include all 266+ stocks. Even if they don't get used they will still increase compile times. |
Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
Quote:
Quote:
|
Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
New smlib update available: smlib 0.9.3 beta
Compatibility breaks: none Changes: Quote:
|
Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
Quote:
Why are you concerned about syntax-highlighting function that are not referenced in the file? Including all of the includes in all of the files is an extremely bad practice. I would never allow anything that does that into our production systems at VW and neither would any of my co-workers. |
Re: SMLIB 0.9.2 BETA (274 Function Stocks) | updated 28.01.2011
Reminds me of windows.h.
|
Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
Quote:
I just tried it out for you: Compile time with includes: 1.00 seconds Compile time without: 1.00 seconds It doesn't really read all files in every include, it just reads smlib.inc and cancels at the second line: PHP Code:
Quote:
Again, they aren't really included for the compiler as it will cancel before in smlib.inc. Quote:
Believe me, I wouldn't do it if there would be a more beautiful way, but SourcePawn just isn't C++, so we have to take what we get. And Syntax Highlighting and Autocompletion makes the Development of smlib just way easier. |
Re: SMLIB 0.9.2 BETA (274 Function Stocks) | updated 28.01.2011
Woops, I think I'm already too long awake lol.
I'll rethink this tomorrow when I'm well-rested again. Actually it could work when we only include the headers when we are working on the include file. |
All times are GMT -4. The time now is 13:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.