<div dir="ltr">On Wed, Jun 7, 2017 at 7:29 AM, Samuel Pitoiset <span dir="ltr"><<a href="mailto:samuel.pitoiset@gmail.com" target="_blank">samuel.pitoiset@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To declare both errors and no errors GL prototypes.<br>
<br>
Signed-off-by: Samuel Pitoiset <<a href="mailto:samuel.pitoiset@gmail.com">samuel.pitoiset@gmail.com</a>><br>
---<br>
 src/mesa/main/glheader.h | 3 +++<br>
 1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h<br>
index 3f2a923782..eeee1976ed 100644<br>
--- a/src/mesa/main/glheader.h<br>
+++ b/src/mesa/main/glheader.h<br>
@@ -182,6 +182,9 @@ typedef void *GLeglImageOES;<br>
<br>
 #define GLX_DONT_CARE                                           0xFFFFFFFF<br>
<br>
+#define DECL_GLAPIENTRY(ret, name, ...) \<br>
+   ret GLAPIENTRY _mesa_##name##_no_error(__VA_<wbr>ARGS__); \<br>
+   ret GLAPIENTRY _mesa_##name(__VA_ARGS__);<br>
<br></blockquote><div><br></div><div>I'm not sure I like this.  It saves you (future) typing, but it obfuscates the declarations.  The first thing most people would do upon seeing DECL_GLAPIENTRY would be to search for the definition to figure out what it does.<br><br></div><div>Can you leave it as-is?<br><br></div><div>-Brian<br><br></div><div><br><br><br><br></div></div><br></div></div>