Assign the value val to an object at the address given by ptr.
|
|
|
|
If val is not a ForeignObject, then foreignObject is called first.
|
|
Make sure that the memory at which ptr points is properly allocated. Otherwise, segmentation faults may occur!