Parse error and getting preprocess failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prasha
    New Member
    • Aug 2019
    • 1

    Parse error and getting preprocess failed

    Could you please help me in getting rid of the Parse Error, I think it is something to do with the Preprocessor command.

    Could you please let me know the command.



    ---Preprocess Failed---

    In file included from D:/10_VECTORCAST_E NV/BI3_IBU/Application/app_code/smk/a_app_function/warning\ac_plug _connected_warn ing.c:21:0,

    from vcast_preproces s.11044.0.c:3:

    D:\10_VECTORCAS T_ENV\BI3_IBU\A PPLICATION\type/Define.h:170:25 : error: pasting "(" and "b_SMK_ACPlugCo nnectedWarning" does not give a valid preprocessing token

    #define ClrEvt(var) (##var##.old_in put=##var##.new _input)

    ^

    D:/10_VECTORCAST_E NV/BI3_IBU/Application/app_code/smk/a_app_function/warning\ac_plug _connected_warn ing.c:84:2: note: in expansion of macro 'ClrEvt'

    ClrEvt(b_SMK_AC PlugConnectedWa rning);

    ^

    D:/10_VECTORCAST_E NV/BI3_IBU/Application/app_code/smk/a_app_function/warning\ac_plug _connected_warn ing.c:84:9: error: pasting "b_SMK_ACPlugCo nnectedWarning" and "." does not give a valid preprocessing token

    ClrEvt(b_SMK_AC PlugConnectedWa rning);

    ^

    D:\10_VECTORCAS T_ENV\BI3_IBU\A PPLICATION\type/Define.h:170:28 : note: in definition of macro 'ClrEvt'

    #define ClrEvt(var) (##var##.old_in put=##var##.new _input)

    ^~~

    D:\10_VECTORCAS T_ENV\BI3_IBU\A PPLICATION\type/Define.h:170:43 : error: pasting "=" and "b_SMK_ACPlugCo nnectedWarning" does not give a valid preprocessing token

    #define ClrEvt(var) (##var##.old_in put=##var##.new _input)

    ^
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    Show your code and explain briefly what the code is about.

    Comment

    Working...