winpty/agent/AgentAssert.h
Ryan Prichard 76f25ae5dd Checkpoint work on the EventLoop and NamedPipe classes.
* Make the agent work correctly when the child process exits.
2012-03-14 02:37:18 -07:00

9 lines
214 B
C

#ifndef AGENTASSERT_H
#define AGENTASSERT_H
#define ASSERT(x) do { if (!(x)) assertFail(__FILE__, __LINE__, #x); } while(0)
void assertFail(const char *file, int line, const char *cond);
#endif // AGENTASSERT_H