MorePalmOS
A development library for developing Palm OS applications

MoreMacro.h File Reference

Defines an unused-parameter macro. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.


Defines

#define M_UNUSED

Detailed Description

Defines an unused-parameter macro.

PalmUtils.h also includes an unused-parameter macro, but PalmUtils.h also defines min and max, and includes warnings that the file should not be used.

This header may define more macros later.

Definition in file MoreMacro.h.


Define Documentation

#define M_UNUSED
 

M_UNUSED is an alternative to UNUSED_PARAM(id) in PalmUtils.h.

To use it, just define your funciton like this:

    void Foo ( int a )

    void Foo ( int a M_UNUSED )
    {
    }

On GCC, this will be passed to the compiler as:

    void Foo ( int a __attribute__((__unused__)) )

On Codewarrior, this will be passed to the compiler as:

    void Foo ( int a )

Definition at line 58 of file MoreMacro.h.

SourceForge.net Logo