It doesn't give me a NULL pointer meesage if the pointer is referenced inside a function...
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;
}
Can't pointers be referenced in their definition in lite-c?