S
syn1kk
So I have this code that allocates memory for a struct, by the name of
"instance[tuner]", and then it checks to see if the allocation was
successful -->
if( instance[tuner] == NULL )
{
send_tuner_to_user(tuner) ;
send_string_to_user("ERR:could not malloc instance\r\n") ;
debug_flag |= DFLAG__HEAP_FULL ;
return FALSE ;
}
1.) I was just curious, what is this debug_flag?
2.) How do people customarily use this debug flag thing?
3.) Do they use it similiar to how a C++ exception is used??
"instance[tuner]", and then it checks to see if the allocation was
successful -->
if( instance[tuner] == NULL )
{
send_tuner_to_user(tuner) ;
send_string_to_user("ERR:could not malloc instance\r\n") ;
debug_flag |= DFLAG__HEAP_FULL ;
return FALSE ;
}
1.) I was just curious, what is this debug_flag?
2.) How do people customarily use this debug flag thing?
3.) Do they use it similiar to how a C++ exception is used??