#endif
#include "request.h"
-#if SYSCALL_TRACE
-#define DEBUG(str, x...) Debug(str, x)
-#else
-#define DEBUG(...) do{}while(0)
-#endif
-
#define assert(cnd) do{ \
if( !(cnd) ) { \
- fprintf(stderr, "%s:%i - assert failed - " #cnd, __FILE__, __LINE__);\
+ fprintf(stderr, "%s:%i - assert failed - " #cnd"\n", __FILE__, __LINE__);\
exit(-1); \
} \
}while(0)
exit(127);
}
- Debug("req->NParams = %i", req->NParams);
+ dataPtr = (void*)&req->Params[req->NParams];
assert(req->NParams >= 2);
// return
assert(req->Params[0].Type == ARG_TYPE_INT64);
free( req );
free( retPtrs );
- DEBUG(": %i 0x%llx", SyscallID, retValue);
+ SYSTRACE(": %i 0x%llx", SyscallID, retValue);
return retValue;
}