source: nanovis/branches/1.1/Trace.h @ 4829

Last change on this file since 4829 was 4612, checked in by ldelgass, 10 years ago

merge r3597 from trunk

  • Property svn:eol-style set to native
File size: 1.1 KB
RevLine 
[2798]1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
[3452]2/*
3 * Copyright (C) 2004-2013  HUBzero Foundation, LLC
4 *
5 * Author: George A. Howlett <gah@purdue.edu>
6 */
7
[848]8#ifndef __TRACE_H__
9#define __TRACE_H__
10
[1199]11#include <GL/glew.h>
[1991]12#include <syslog.h>
[1199]13
[2841]14#include "config.h"
15
[1429]16#define MAKE_STRING(x) #x
17#define NEWSTRING(x) MAKE_STRING(x)
18#define AT __FILE__ ":" NEWSTRING(__LINE__)
19
[3452]20extern void LogMessage(int priority, const char *funcname, const char *fileName,
21                       int lineNum, const char* format, ...);
[1984]22
[3452]23#define ERROR(...)      LogMessage(LOG_ERR, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__)
[1984]24#ifdef WANT_TRACE
[3452]25#define TRACE(...)      LogMessage(LOG_DEBUG, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__)
[1984]26#else
27#define TRACE(...)
28#endif
[3452]29#define WARN(...)       LogMessage(LOG_WARNING, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__)
30#define INFO(...)       LogMessage(LOG_INFO, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__)
[1984]31
[4612]32extern bool CheckFBO(GLenum *status);
[1200]33extern void PrintFBOStatus(GLenum status, const char *prefix);
34extern bool CheckGL(const char *prefix);
[848]35#endif
Note: See TracBrowser for help on using the repository browser.