tooltiperror
Super Moderator
- Reaction score
- 231
Alright, while reading JassHelper Manual, I was paying specific attention to the Terminal and Commandline flags. I noticed --scriptonly, and it allowed you to get an external output.j file. In other words, this:
Becomes:
this.
Of course, this is super, because it would mean I would be able to simply convert my vJASS into simple JASS. However, the problem is, it creates a lot of globals that I would have to manually create, then I would have to add the udg_SUFFIX to them. Does anyone have ideas for a work around?
JASS:
Becomes:
JASS:
//output.J
globals
//globals from HolyMoly:
constant boolean LIBRARY_HolyMoly=true
//endglobals from HolyMoly
//JASSHelper struct globals:
constant integer si__Data=1
integer si__Data_F=0
integer si__Data_I=0
integer array si__Data_V
integer array s__Data_x
real array s__Data_y
endglobals
//Generated allocator of Data
function s__Data__allocate takes nothing returns integer
local integer this=si__Data_F
if (this!=0) then
set si__Data_F=si__Data_V[this]
else
set si__Data_I=si__Data_I+1
set this=si__Data_I
endif
if (this>8190) then
return 0
endif
set si__Data_V[this]=-1
return this
endfunction
//Generated destructor of Data
function s__Data_deallocate takes integer this returns nothing
if this==null then
return
elseif (si__Data_V[this]!=-1) then
return
endif
set si__Data_V[this]=si__Data_F
set si__Data_F=this
endfunction
//library HolyMoly:
//library HolyMoly ends
function main takes nothing returns nothing
call ExecuteFunc("jasshelper__initstructs2036")
endfunction
//Struct method generated initializers/callers:
function jasshelper__initstructs2036 takes nothing returns nothing
endfunction
this.
Of course, this is super, because it would mean I would be able to simply convert my vJASS into simple JASS. However, the problem is, it creates a lot of globals that I would have to manually create, then I would have to add the udg_SUFFIX to them. Does anyone have ideas for a work around?