Re: possible useful macros...

Discussion in 'C Programming' started by August Karlstrom, May 24, 2012.

  1. On 2012-05-23 20:50, io_x wrote:
    > what about these macro?
    >
    > #define MM malloc
    > #define FF free
    > #define ooo cout


    I prefer these:

    #include <gc/gc.h>

    #define NEW(p) p = GC_malloc(sizeof *(p))
    #define NEW_N(p, n) p = GC_malloc((n) * sizeof *(p))


    /August
    August Karlstrom, May 24, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben Pfaff

    Re: possible useful macros...

    Ben Pfaff, May 23, 2012, in forum: C Programming
    Replies:
    0
    Views:
    299
    Ben Pfaff
    May 23, 2012
  2. John Gordon

    Re: possible useful macros...

    John Gordon, May 23, 2012, in forum: C Programming
    Replies:
    3
    Views:
    293
    Phil Carmody
    Jun 11, 2012
  3. Kaz Kylheku

    Re: possible useful macros...

    Kaz Kylheku, May 23, 2012, in forum: C Programming
    Replies:
    0
    Views:
    234
    Kaz Kylheku
    May 23, 2012
  4. Lanarcam

    Re: possible useful macros...

    Lanarcam, May 23, 2012, in forum: C Programming
    Replies:
    1
    Views:
    226
    Bartc
    May 23, 2012
  5. Ike Naar

    Re: possible useful macros...

    Ike Naar, May 23, 2012, in forum: C Programming
    Replies:
    0
    Views:
    223
    Ike Naar
    May 23, 2012
Loading...

Share This Page