- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
Suppose I have a function that takes an integer as its single argument.
From inside that function, I have to return true if the integer actually points to a created struct, or false if it doesn't (therefore an integer).
Would this work?
Suppose I have a function that takes an integer as its single argument.
From inside that function, I have to return true if the integer actually points to a created struct, or false if it doesn't (therefore an integer).
Would this work?
JASS:
function isIntMyStruct takes integer i returns boolean
local MyStruct my = i
if my == 0 then
return false
endif
return true
endfunction