Wrong error location when using macro lazarus / 21-General ---------------------------------------------------------------------- alpine · 2021-07-11 13:35 Lazarus 2.0.12 r64642 FPC 3.2.2 i386-win32-win32/win64 Given the following two files: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program Project1; {$MACRO ON}{$DEFINE module:=unit1} uses unit1; begin  module.Moo(1, 2);  module.Moo(1);end. and unit1.pas: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit Unit1; {$mode objfpc}{$H+} interface uses  Classes, SysUtils; procedure Moo(A1, A2: Integer); implementation procedure Moo(A1, A2: Integer);beginend; end. The compiler gives the following error: Code: [Select]project1.lpr(4,6) Error: Wrong number of parameters specified for call to "Moo"which is the location of I in {$DEFINE. The error is actually on the 10-th line. I believe it is a bug. Someone advice how to proceed regarding the present situation, migration to GitLab, etc. ---------------------------------------------------------------------- marcov · 2021-07-11 14:21 Just report it in mantis. The definitive conversion of mantis still must happen ---------------------------------------------------------------------- alpine · 2021-07-11 15:49 Done. https://bugs.freepascal.org/view.php?id=39205 ---------------------------------------------------------------------- marcov · 2021-07-11 15:55 Thanks