Changes between Version 3 and Version 4 of doc/lol/base/assert.h


Ignore:
Timestamp:
Jan 29, 2013, 2:47:59 PM (6 years ago)
Author:
sam
Comment:

document the upcoming UNUSED() macro

Legend:

Unmodified
Added
Removed
Modified
  • doc/lol/base/assert.h

    v3 v4  
    33
    44View this file in the source browser: [browser:trunk/src/lol/base/assert.h]
     5
     6== UNUSED() ==
     7
     8A macro that indicates to both the compiler and the reader that some variables are kowingly unused.
     9
     10{{{
     11#!cpp
     12#define UNUSED(...) /* ... */
     13}}}
     14
     15Here is a very simple example on how to use it:
     16
     17{{{
     18#!cpp
     19int main(int argc, char *argv[])
     20{
     21    UNUSED(argc);
     22    UNUSED(argv);
     23    /* Or optionally: */
     24    UNUSED(argc, argv);
     25}
     26}}}
    527
    628== ASSERT() ==