Home > Back-end >  Define splicing problem
Define splicing problem

Time:05-18

When I use in c + + # # for Mosaic, gave an issue, the code is as follows,

# define CORE_SUB_ (N, S) N# # _ # # S # # _m_wrap. H
# define CORE_SUB (N, S) CORE_SUB_ (N, S)

# define core_top_t CORE_SUB (name, core)

The result is
Core_top_t=name_core_m_wrap. H

But when I change the first sentence to
# define CORE_SUB_ (N, S) N# # _ # # S # #. H
Compile error,
". "does not difference a valid preprocessing token
Namely not joining together a. At the beginning of, but I really want to get name_core. H the splicing, excuse me, is there any way to solve this problem,
  • Related