• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Does jasshelper delete useless functions?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,338
Hi,

Suppose I've got the following library. Will jasshelper delete the function / not put it into the map script if it does nothing?

JASS:
library Test

globals
  private constant boolean STATE = false
endglobals

function foo takes nothing returns nothing
  if STATE then
    ...
  endif
endfunction

endlibrary

If it does, how can I fix the library above so it only adds the function foo the the map script if STATE = true?
 
Status
Not open for further replies.
Top