PVRTError_8h-source.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  3. <title>PowerVR SDK</title>
  4. <link href="doxygen.css" rel="stylesheet" type="text/css">
  5. <link href="tabs.css" rel="stylesheet" type="text/css">
  6. <table width="100%">
  7. <tr>
  8. <td width="33%">
  9. <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
  10. </td>
  11. <td width="33%">
  12. <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
  13. </td>
  14. <td width="34%">
  15. <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
  16. </td>
  17. </tr>
  18. </table>
  19. <hr>
  20. </head><body>
  21. <!-- Generated by Doxygen 1.3.6 -->
  22. <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
  23. <h1>PVRTError.h</h1><a href="PVRTError_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
  24. 00002 <span class="comment"></span>
  25. 00003 <span class="comment"> @File PVRTError.h</span>
  26. 00004 <span class="comment"></span>
  27. 00005 <span class="comment"> @Title PVRTError</span>
  28. 00006 <span class="comment"></span>
  29. 00007 <span class="comment"> @Version </span>
  30. 00008 <span class="comment"></span>
  31. 00009 <span class="comment"> @Copyright Copyright (C) Imagination Technologies Limited.</span>
  32. 00010 <span class="comment"></span>
  33. 00011 <span class="comment"> @Platform ANSI compatible</span>
  34. 00012 <span class="comment"></span>
  35. 00013 <span class="comment"> @Description </span>
  36. 00014 <span class="comment"></span>
  37. 00015 <span class="comment">******************************************************************************/</span>
  38. 00016 <span class="preprocessor">#ifndef _PVRTERROR_H_</span>
  39. 00017 <span class="preprocessor"></span><span class="preprocessor">#define _PVRTERROR_H_</span>
  40. 00018 <span class="preprocessor"></span>
  41. 00019 <span class="preprocessor">#if defined(__BADA__)</span>
  42. 00020 <span class="preprocessor"></span><span class="preprocessor">#include &lt;FApp.h&gt;</span>
  43. 00021 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
  44. 00022 <span class="preprocessor">#else</span>
  45. 00023 <span class="preprocessor"></span><span class="preprocessor">#if defined(__SYMBIAN32__)</span>
  46. 00024 <span class="preprocessor"></span><span class="preprocessor">#include &lt;e32debug.h&gt;</span>
  47. 00025 <span class="preprocessor">#elif defined(_WIN32) &amp;&amp; !defined(UNDER_CE)</span>
  48. 00026 <span class="preprocessor"></span><span class="preprocessor">#include &lt;windows.h&gt;</span>
  49. 00027 <span class="preprocessor">#else</span>
  50. 00028 <span class="preprocessor"></span><span class="preprocessor">#include &lt;stdio.h&gt;</span>
  51. 00029 <span class="preprocessor">#endif</span>
  52. 00030 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
  53. 00031 <span class="preprocessor"></span><span class="comment">/*!***************************************************************************</span>
  54. 00032 <span class="comment"> Macros</span>
  55. 00033 <span class="comment">*****************************************************************************/</span>
  56. 00034
  57. 00036 <span class="preprocessor">#ifndef PVRTERROR_OUTPUT_DEBUG</span>
  58. 00037 <span class="preprocessor"></span><span class="preprocessor"> #if defined(_DEBUG) || defined(DEBUG)</span>
  59. 00038 <span class="preprocessor"></span><span class="preprocessor"> #if defined(__SYMBIAN32__)</span>
  60. 00039 <span class="preprocessor"></span><span class="preprocessor"> #define PVRTERROR_OUTPUT_DEBUG(A) RDebug::Printf(A);</span>
  61. 00040 <span class="preprocessor"></span><span class="preprocessor"> #elif defined(__BADA__)</span>
  62. 00041 <span class="preprocessor"></span><span class="preprocessor"> #define PVRTERROR_OUTPUT_DEBUG(A) AppLog(A);</span>
  63. 00042 <span class="preprocessor"></span><span class="preprocessor"> #elif defined(_WIN32) &amp;&amp; !defined(UNDER_CE)</span>
  64. 00043 <span class="preprocessor"></span><span class="preprocessor"> #define PVRTERROR_OUTPUT_DEBUG(A) OutputDebugStringA(A);</span>
  65. 00044 <span class="preprocessor"></span><span class="preprocessor"> #else</span>
  66. 00045 <span class="preprocessor"></span><span class="preprocessor"> #define PVRTERROR_OUTPUT_DEBUG(A) fprintf(stderr,A);</span>
  67. 00046 <span class="preprocessor"></span><span class="preprocessor"> #endif</span>
  68. 00047 <span class="preprocessor"></span><span class="preprocessor"> #else</span>
  69. 00048 <span class="preprocessor"></span><span class="preprocessor"> #define PVRTERROR_OUTPUT_DEBUG(A)</span>
  70. 00049 <span class="preprocessor"></span><span class="preprocessor"> #endif</span>
  71. 00050 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
  72. 00051 <span class="preprocessor"></span>
  73. <a name="l00052"></a><a class="code" href="PVRTError_8h.html#a0">00052</a>
  74. 00053 <span class="comment">/*!***************************************************************************</span>
  75. 00054 <span class="comment"> Enums</span>
  76. 00055 <span class="comment">*****************************************************************************/</span>
  77. 00057 <span class="keyword">enum</span> <a class="code" href="PVRTError_8h.html#a5">EPVRTError</a>
  78. 00058 {
  79. 00059 <a class="code" href="PVRTError_8h.html#a5a1">PVR_SUCCESS</a> = 0,
  80. 00060 <a class="code" href="PVRTError_8h.html#a5a2">PVR_FAIL</a> = 1,
  81. <a name="l00061"></a><a class="code" href="PVRTError_8h.html#a5">00061</a> <a class="code" href="PVRTError_8h.html#a5a3">PVR_OVERFLOW</a> = 2
  82. 00062 };
  83. 00063
  84. 00064 <span class="comment">/*!***************************************************************************</span>
  85. 00065 <span class="comment"> @Function PVRTErrorOutputDebug</span>
  86. 00066 <span class="comment"> @Input format printf style format followed by arguments it requires</span>
  87. 00067 <span class="comment"> @Description Outputs a string to the standard error.</span>
  88. 00068 <span class="comment">*****************************************************************************/</span>
  89. 00069 <span class="keywordtype">void</span> <a class="code" href="PVRTError_8h.html#a4">PVRTErrorOutputDebug</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> * <span class="keyword">const</span> format, ...);
  90. 00070
  91. 00071 <span class="preprocessor">#endif // _PVRTERROR_H_</span>
  92. 00072 <span class="preprocessor"></span>
  93. 00073 <span class="comment">/*****************************************************************************</span>
  94. 00074 <span class="comment">End of file (PVRTError.h)</span>
  95. 00075 <span class="comment">*****************************************************************************/</span>
  96. 00076
  97. </pre></div><br>
  98. <br>
  99. <P align=left><FONT size=2><STRONG><A
  100. href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> ©
  101. 1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
  102. <hr>
  103. <address style="align: left;"><small><FONT color=f0f>
  104. Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
  105. </body>
  106. </html>