Gentee Programming Language > Documentation > Libraries Download documentation

callback

This function allows you to use gentee functions as callback functions. For example, gentee function can be specified as a message handler for windows.

uint cback = callback( &myfunc, 4 )
...
freecallback( cback )


 
uint callback(
      uint   address,
      uint   sizeparams
)

Parameters

addressIdentifier ( address ) of gentee function that will be callback function.
sizeparamsThe summary size of parameters (number of uint values). One parameter uint = 1 (uint = 1). uint + uint = 2, uint + long = 3.

Return value

You can use the return value as the callback address. You have to free it with freecallback function when you don't need this callback function.

See also

    Other functions


 Copyright © 2004-2006 Gentee Inc. All rights reserved.