HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

library_once?

10-05-2008, 08:47 AM#1
Vestras
What is it? What does it do?
10-05-2008, 11:40 AM#2
the-thingy
Quote:
Originally Posted by JASSHelper manual
The library_once keyword works exactly like library but you can declare the same library name twice, it would just ignore the second declaration and avoid to add its contents instead of showing a syntax error, it is useful in combination with textmacros.

So, if you have 2+ library declarations with the same name, only one (not sure which) will be used
10-06-2008, 03:08 AM#3
chobibo
Collapse JASS:
library_once t
endlibrary

library_once t
endlibrary

yields no syntax errors.