June 01, 1997
C++
June 1997/Being Assertive in C/C++/Listing 5
Listing 5: Detecting unimplemented functionality
void PushVarCString( C_object* InObject,
char* Buffer,
int BufferSize,
char **Address )
{
if( TextLength( InObject ) < BufferSize )
{
ObjectToCString( InObject, Buffer, BufferSize );
*Address = Buffer;
}
else
{
assert( "Long C strings not yet implemented" == NULL );
// Handle gracefully as temporary measure.
// Replace later with real implementation.
ObjectToCString( InObject, Buffer, BufferSize );
*Address = Buffer;
}
}
//End of File
Previous Page |
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
Next Page