Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: rtoe
  • Order by date
  1. rtoe

    Creating constants like enum constants with a macro

    I'd like to have a macro to call which increments an ID. This ID is a constant, being incremented each time it is called. Obviously, the following does not work: #define ID 0 // initially .. then #define ID ID+1 // whenever I need a new ID generated. Is there a trick, potentially with multiple...

Part and Inventory Search

Back
Top