9e957d466f
Server listens correctly with threads and stdin reader thread. Client does nothing currently gutting UDP_Write for a UDPbase class introduced in this commit.
19 lines
314 B
C
19 lines
314 B
C
#pragma once
|
|
|
|
#ifdef DEBUG
|
|
#include <stdio.h>
|
|
#include <GL/glew.h>
|
|
|
|
#define glCheckErrors() \
|
|
do \
|
|
{ \
|
|
GLenum err; \
|
|
while ((err = glGetError()) != GL_NO_ERROR) \
|
|
{ \
|
|
fprintf (stderr, "%s:%d: %s\n", __FILE__, __LINE__, glewGetErrorString(err)); \
|
|
} \
|
|
} while (0)
|
|
#else
|
|
#define glCheckErrors()
|
|
#endif
|