I have a class function: Date.set_totalseconds(integer).
I have on the stack:
Code:-1 = "set_totalseconds" native closure
-2 = Date instance I wish to operate on
-3 = Date class (I used to create a new instance of)
-4 = Root Table (used to lookup the Date class)
I then do:
Code:sq_pushroottable
sq_pushinteger 0
sq_call 3, SQFalse, SQFalse
This call always fails. I've tried pushing the date instance after my root table and calling with 4 as well:
Code:sq_pushroottable
sq_push -3
sq_pushinteger 0
sq_call 4, SQFalse, SQFalse
with no luck. Also:
Code:sq_pushroottable
sq_pushinteger 0
sq_push -4
sq_call 4, SQFalse, SQFalse
Any thoughts on what I am doing wrong here?
Jeremy