DEBUG Mode
#1

How can I make this stock of (fixes.nc) with DEBUG?

Quote:

#if FIX_fwrite
stock FIXES_fwrite(File:handle, const string[])
{
return handle && fwrite(handle, string);
}

#define _ALS_fwrite
#define fwrite( FIXES_fwrite(
#endif

I tried so, but it made a mistake ...

Quote:

#if FIX_fwrite
stock FIXES_fwrite(File:handle, const string[])
{
printf("START: fwrite: (%s)", handle);
return handle && fwrite(handle, string);
}

#define _ALS_fwrite
#define fwrite( FIXES_fwrite(
#endif

Thank you:
Reply
#2

UPaaaaaaaaaaaa
Reply
#3

printf("START: fwrite: (%d)", _:handle);

or:

FIXES_PRINTF("START: fwrite: (%d)", _:handle);
Reply
#4

Quote:

File:handle

isn't a string, it's an integer with the highlight of File, in case you're as @OneDay provided code for, trying to show the handle ID, then use _: handle for a non-highlighted integer (%i // %d). However, if you're trying to provide the file directory, then you will have to modify your code to pass over the directory while opening File: handle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)