#define s_is_number(%1) isdigit(%1)
Hello.
I want to change all amxmodx natives names, so it will be easy to me to remember those. Each language use same function but different name it just confuses... My question is how does computer see that PHP Code:
Is my way slower or are same like calling isdigit(ch)? Thanks! |
Re: #define s_is_number(%1) isdigit(%1)
The compiler just replace every s_is_number with isdigit.
|
Re: #define s_is_number(%1) isdigit(%1)
What you do is a macro. If you write s_is_number, when you will compile the plugin, any occurrence of this name will be replaced by isdigit.
|
Re: #define s_is_number(%1) isdigit(%1)
Quote:
Quote:
One question more if num_to_str( number, string[], ilen) how #define s_number_to_string(?) I cant remember how it goes ... |
Re: #define s_is_number(%1) isdigit(%1)
PHP Code:
|
Re: #define s_is_number(%1) isdigit(%1)
Quote:
%2 is string[] ? :) |
Re: #define s_is_number(%1) isdigit(%1)
Have you tried it?
|
Re: #define s_is_number(%1) isdigit(%1)
formatex is faster :)
PHP Code:
|
Re: #define s_is_number(%1) isdigit(%1)
Please don't ever release plugins if you are going to do this. Don't ask for help with the code for that matter, you ruin readability for the community. It's better if you just learn something.
|
Re: #define s_is_number(%1) isdigit(%1)
Zombie plague style. You CANT understand.
|
All times are GMT -4. The time now is 20:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.