Author Topic: void argument in c++ function parameters  (Read 667 times)

RotemR

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
void argument in c++ function parameters
« on: January 25, 2022, 07:41:10 pm »
I am trying to reverse engineer my code. this is an old c++ code so in the destructors parameters list they used to write (void) like this:
      87:
      88: CMedicationsForm::~CMedicationsForm(void).
I am getting a lot of parsing errors on this (for every dtor in the code).
is there any way I can bypass this? maybe add a Language macro?

Thanks,




eberline

  • EA User
  • **
  • Posts: 40
  • Karma: +1/-0
    • View Profile
Re: void argument in c++ function parameters
« Reply #1 on: February 08, 2022, 09:44:27 pm »
A language macro won't work around this one. I suggest you submit a bug report
https://sparxsystems.com/registered/forms/reg_bug_report.html
or
https://sparxsystems.com/support/forms/bug_report.html

Over the years I've submitted many re. C++ parsing. Often the immediate response is a patch to the language parser, with a proper fix appearing in the next minor release or so.