Skip to main content
VNdir.1
Associate
December 27, 2022
Solved

token pasting errors

  • December 27, 2022
  • 1 reply
  • 1673 views

I am trying to do token pasting to defined macros but it fails using this platform. main.h contains the definitions and the other file is my tokenpasting attempt getting errors but it works on netbeans

This topic has been closed for replies.
Best answer by VNdir.1

I realised that the reason why it worked is because I was using the token directly. When I use the variable b the token pasted is the variable name.

1 reply

Wijeden RHIMI
ST Employee
December 28, 2022

Hello@VNdir.1

Could you please provide a complete screenshot to understand the difference between functions and help us reproduce this behavior and further analyze it.

Kind regards,

Wijeden,

VNdir.1
VNdir.1AuthorAnswer
Associate
December 28, 2022

I realised that the reason why it worked is because I was using the token directly. When I use the variable b the token pasted is the variable name.