Andes Workshop

It is currently Tue Mar 19, 2024 5:51 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: What does "##" mean in a macro? (Concatenation)
PostPosted: Mon Sep 14, 2015 3:16 pm 
Offline

Joined: Wed Apr 13, 2011 7:44 pm
Posts: 23
We may see "##" in Andes demo project, such as below line.
Code:
#define HW_ISR(n)               HW##n##_ISR

What does it mean?

The ‘##’ preprocessing operator performs token pasting.

For detail information, please refer following website.
https://gcc.gnu.org/onlinedocs/cpp/Concatenation.html


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group