COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Macros
tokenbuffer.cpp File Reference
#include <cassert>
#include "tokenbuffer.h"
#include "message.h"
#include "message_types.h"
#include <util/coErr.h>
#include <util/byteswap.h>
Include dependency graph for tokenbuffer.cpp:

Macros

#define CHECK(size_type, error_ret)
 

Macro Definition Documentation

#define CHECK (   size_type,
  error_ret 
)
Value:
do \
{ \
if (currdata + sizeof(size_type) > data + length) \
{ \
std::cerr << "TokenBuffer: read past end (" << __FILE__ << ":" << __LINE__ << ")" << std::endl; \
std::cerr << " required: " << sizeof(size_type) << ", available: " << data + length - currdata << std::endl; \
assert(0 == "read past end"); \
return error_ret; \
} \
} while (false)
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: khronos-glext.h:6354
GLenum GLuint GLenum GLsizei length
Definition: khronos-glext.h:6279