05.09.2015, 15:20
(
Последний раз редактировалось Freezo; 05.09.2015 в 17:42.
)
Today i learned that when you declare a stock or a function like :
The compiler doesn't manage that, well because of the point '.', and it gives an error of "Undefined symbol", but how can we fix that?
Well its really simple.
What did i do? Well simply i create a define that replace the printf with _replace_ which the compiler will read it like this:
Done.
Edit: i didn't tough that its something made before: Here
Код:
stock printf.one() { }
Well its really simple.
- First, we will need to declare a define
- the define will basically replace the real one.
Код:
#define printf. _replace_
Код:
stock printf.one() { } stock printf.two() { } stock printf.three() { }
Код:
stock _replace_one() {} stock _replace_two() {} stock _replace_three {}
Edit: i didn't tough that its something made before: Here