Cyclone Scheme  0.28.0

◆ copy2heap()

object copy2heap ( void *  data,
object  obj 
)

Copy given object to the heap, if it is from the stack. This function is intended to be called directly from application code. Note that only a shallow-copy is performed! For example, a pair object would be copied to the heap but its car and cdr objects would not.

Parameters
dataThread data object for the caller.
objObject to copy.