Design decision. Bad API errors should never be silenced.
Of course, you can always not use galahad.
#ifndef GLHD_CONTEXT_H
#define GLHD_CONTEXT_H
+#include <stdio.h>
+
#include "pipe/p_state.h"
#include "pipe/p_context.h"
return (struct galahad_context *)pipe;
}
+#define glhd_warn(...) \
+do { \
+ fprintf(stderr, "galahad: %s: ", __FUNCTION__); \
+ fprintf(stderr, __VA_ARGS__); \
+ fprintf(stderr, "\n"); \
+} while (0)
+
#endif /* GLHD_CONTEXT_H */
/**************************************************************************
*
* Copyright 2009 VMware, Inc.
+ * 2010 Corbin Simpson <MostAwesomeDude@gmail.com>
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a