- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I've got two libraries. The first uses a textmacro to generate variations of a struct. The second then uses of those variations in some code.
I have the second library require the first, but even so jasshelper complains that the struct doesn't exist at all.
Now my second library
I searched the generated map script and it didn't seem to even generate my AStruct code at all. Why is this not working?
I've got two libraries. The first uses a textmacro to generate variations of a struct. The second then uses of those variations in some code.
I have the second library require the first, but even so jasshelper complains that the struct doesn't exist at all.
JASS:
library Structs
//! textmacro takes Type
struct $Type$Struct
integer i = 0
static method create takes nothing returns thistype
set thistype this = thistype.allocate()
return this
endmethod
endstruct
//! endtextmacro
//! runtextmacro("A")
endlibrary
Now my second library
JASS:
library Test requires Structs
function foo takes nothing returns nothing
local AStruct s = AStruct.create() //complains about this line
set s.i = 5 //complains here too
endfunction
endlibrary
I searched the generated map script and it didn't seem to even generate my AStruct code at all. Why is this not working?