Weird problem with macro and TB

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

User avatar
PureLeo
Enthusiast
Enthusiast
Posts: 221
Joined: Fri Jan 29, 2010 1:05 pm
Location: Brazil

Weird problem with macro and TB

Post 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.
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Re: Weird problem with macro and TB

Post by ABBKlaus »

its gone Resident :wink:

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

Br Klaus
User avatar
PureLeo
Enthusiast
Enthusiast
Posts: 221
Joined: Fri Jan 29, 2010 1:05 pm
Location: Brazil

Re: Weird problem with macro and TB

Post by PureLeo »

You know.. I actually LIKED it :mrgreen:
I hope I can reproduce It again when needed :D

Thank you.
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Re: Weird problem with macro and TB

Post by ABBKlaus »

oh thats easy, just compile your resident without any procedure(dll) :twisted:
Post Reply