- Joined
- Feb 27, 2019
- Messages
- 401
Unfortunately this small code snipped has been lost with wc3campains.net downfall.
So if someone is looking for it ^^
System: BoolexpUtils
Author: Vexorian
Usage: a little of memory saving if you use True/False conditions often.
So if someone is looking for it ^^
System: BoolexpUtils
Author: Vexorian
Usage: a little of memory saving if you use True/False conditions often.
JASS:
library BoolexprUtils initializer init
globals
boolexpr BOOLEXPR_TRUE=null
boolexpr BOOLEXPR_FALSE=null
endglobals
private function rettrue takes nothing returns boolean
return true
endfunction
private function retfalse takes nothing returns boolean
return false
endfunction
private function init takes nothing returns nothing
set BOOLEXPR_TRUE=Condition(function rettrue)
set BOOLEXPR_FALSE=Condition(function retfalse)
endfunction
endlibrary