macro functions console appi

This is a discussion on macro functions console appi within the C Programming forums, part of the General Programming Boards category; Code: #define SET_LIST_ITEM_OWNER (pListItem,pOwner) (pListItem)->pOwner=(void*)pOwner Is this typical gcc compiler code? Cause my standard console appi in visual studio give ...

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    2

    macro functions console appi

    Code:
    #define SET_LIST_ITEM_OWNER (pListItem,pOwner)	(pListItem)->pOwner=(void*)pOwner
    Is this typical gcc compiler code? Cause my standard console appi in visual studio give me errors.



    Kind regards,
    Jo

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,498
    What errors?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    2
    Quote Originally Posted by Salem View Post
    What errors?
    undeclared identifier errors for the macro arguments.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. An array of macro functions?
    By someprogr in forum C Programming
    Replies: 6
    Last Post: 01-28-2009, 06:05 PM
  2. Replies: 7
    Last Post: 11-17-2008, 12:00 PM
  3. Passing pointers between functions
    By heygirls_uk in forum C Programming
    Replies: 5
    Last Post: 01-09-2004, 05:58 PM
  4. Attaching functions to a class/struct
    By VirtualAce in forum Tech Board
    Replies: 2
    Last Post: 08-04-2003, 10:56 AM
  5. Passing data/pointers between functions #2
    By TankCDR in forum C Programming
    Replies: 1
    Last Post: 11-02-2001, 08:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21