Function Ptr

BlitzMax Forums/BlitzMax Programming/Function Ptr

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Global b:Byte Ptr=MemAlloc(7)

b[0]=Byte(195)

Global func( a:Int )=Byte Ptr(b)

func( 5 )


Can you now just pop the paramater off the stack? I cant do it because I dont know assembler so much.

When I placed a debugstop before the function call and steped into the function blitzmax just passed over it. It seems like this technique could be quite well behaved.