Page 1 of 1

Weird problem with macro and TB

Posted: Thu Mar 03, 2011 7:33 am
by PureLeo
Hi again...

I'm having a very very weird problem with a macro and tailbite...
It's problably my fault, but who knows...

I was just testing tb and had the "smart" idea to compile a lib with a macro that I use a lot in it...

Code: Select all

Macro Rand(min, max)
 (Random(max-min)+min)
EndMacro
It obviously(or not) gave me an error msg and didn't compile the lib... There's no new lib in UserLibs folder...

But now when I try to use that macro again I get a macro error:
Macro (Random(max-min)+min)
That is like the macro already exists...

How is that possible?
And now theres no file to delete to fix it since the lib was aparently not created... oh god...

Thanks in advance!

ps: Oh, and the most weird thing: if I use Rand(x,y) anywhere, it still works!
Where did this lib go? lol
ps2: It still works when i use it in a new blank file with no includes... just to be clear.

Re: Weird problem with macro and TB

Posted: Thu Mar 03, 2011 10:30 am
by ABBKlaus
its gone Resident :wink:

just have a look in your ...\PureBasic\Residents\ folder.

Br Klaus

Re: Weird problem with macro and TB

Posted: Thu Mar 03, 2011 6:17 pm
by PureLeo
You know.. I actually LIKED it :mrgreen:
I hope I can reproduce It again when needed :D

Thank you.

Re: Weird problem with macro and TB

Posted: Thu Mar 03, 2011 9:27 pm
by ABBKlaus
oh thats easy, just compile your resident without any procedure(dll) :twisted: