OK Im a little lost then.
Looking at your code
var sound_handle = 0; // variable sound handle
var* pnt_to_sound; // pointer to handle
function TestPointer()
{
if(pnt_to_sound == NULL)
{
error("Null Pointer!");
}
}
void main()
{
pnt_to_sound = &sound_handle;
on_space = TestPointer;
}
Exactly like this, should the message be triggered?
That is, is TestPointer supposed to test if pnt_to_sound==zero (not pointing at anything),
or is it supposed to test if sound_handle(via pnt_to_snd)==zero ?