Search:

Type: Posts; User: Brafil

Search: Search took 0.01 seconds.

  1. Most examples are seen in optimization, combined...

    Most examples are seen in optimization, combined with inline, written in headers. Cuz not many compilers have "extern inline" support. And of course these functions should be short.
  2. You can do this: #ifdef __GNUC__ ...

    You can do this:



    #ifdef __GNUC__
    #define MAYBE_UNUSED __attribute__((used))
    #elif defined _MSC_VER
    #pragma warning(disable: Cxxxxx)
    #define MAYBE_UNUSED
    #else
Results 1 to 2 of 2