[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trap return result wierdness



I'm new to MCL and somewhat new to Macintosh programming, so bear with me.

I was surprised by this result:
? (%stack-block ((response 4)) (#_gestalt #$gestaltEasyAccessAttr
 				          response))
59985

I was expecting a negative error number. Do I need to somehow coerce
the result of the trap into a negative word?

Also, is there higher level construct than %stack-block for allocating
a word or longword of storage?

--
Tim Moore                    moore@cs.utah.edu {bellcore,hplabs}!utah-cs!moore
"Wind in my hair - Shifting and drifting - Mechanical music - Adrenaline surge"
	- Rush