1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 3<title>oscl_base_macros.h File Reference</title> 4<link href="doxygen.css" rel="stylesheet" type="text/css"> 5</head><body> 6<!-- Generated by Doxygen 1.2.18 --> 7<center> 8<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> 9<hr><h1>oscl_base_macros.h File Reference</h1>This file defines common macros and constants for basic compilation support. 10<a href="#_details">More...</a> 11<p> 12<code>#include "<a class="el" href="osclconfig_8h-source.html">osclconfig.h</a>"</code><br> 13 14<p> 15<a href="oscl__base__macros_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> 16<tr><td></td></tr> 17<tr><td colspan=2><br><h2>Defines</h2></td></tr> 18<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a80">NULL_TERM_CHAR</a> '\0'</td></tr> 19<tr><td> </td><td><font size=-1><em>The NULL_TERM_CHAR is used to terminate c-style strings.</em> <a href="group__osclbase.html#a80"></a><em></em></font><br><br></td></tr> 20<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a81">NULL</a> (0)</td></tr> 21<tr><td> </td><td><font size=-1><em>if the NULL macro isn't already defined, then define it as zero.</em> <a href="group__osclbase.html#a81"></a><em></em></font><br><br></td></tr> 22<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a82">OSCL_INLINE</a> inline</td></tr> 23<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a83">OSCL_COND_EXPORT_REF</a></td></tr> 24<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a84">OSCL_COND_IMPORT_REF</a></td></tr> 25<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a85">OSCL_CONST_CAST</a>(type, exp) ((type)(exp))</td></tr> 26<tr><td> </td><td><font size=-1><em>Type casting macros.</em> <a href="group__osclbase.html#a85"></a><em></em></font><br><br></td></tr> 27<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a86">OSCL_STATIC_CAST</a>(type, exp) ((type)(exp))</td></tr> 28<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a87">OSCL_REINTERPRET_CAST</a>(type, exp) ((type)(exp))</td></tr> 29<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a88">OSCL_DYNAMIC_CAST</a>(type, exp) ((type)(exp))</td></tr> 30<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a89">OSCL_UNUSED_ARG</a>(vbl) (void)(vbl)</td></tr> 31<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a90">OSCL_UNUSED_RETURN</a>(value) return value</td></tr> 32<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a91">OSCL_MIN</a>(a, b) ((a) < (b) ? (a) : (b))</td></tr> 33<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a92">OSCL_MAX</a>(a, b) ((a) > (b) ? (a) : (b))</td></tr> 34<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a93">OSCL_ABS</a>(a) ((a) > (0) ? (a) : -(a))</td></tr> 35<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a94">OSCL_TEMPLATED_DESTRUCTOR_CALL</a>(type, simple_type) type :: ~simple_type ()</td></tr> 36<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a95">OSCL_UNSIGNED_CONST</a>(x) x</td></tr> 37<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a96">OSCL_PACKED_VAR</a> "error"</td></tr> 38<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a97">OSCL_BEGIN_PACKED</a> "error"</td></tr> 39<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group__osclbase.html#a98">OSCL_END_PACKED</a> "error"</td></tr> 40</table> 41<hr><a name="_details"></a><h2>Detailed Description</h2> 42This file defines common macros and constants for basic compilation support. 43<p> 44 45<p> 46<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 47<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 48</small></address> 49</body> 50</html> 51