The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Son of" Incorrect Line numbers
#1
There *is* in fact a line number bug. It's in the inline assembly.

Code:
asm ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT ;THIS IS A COMMENT LD F,F end asm

If you try to compile that, you'll be pointed at line 1 for errors, when in fact it's in line 19.

Over a reasonably large program, with includes and lots of documentation, the place you can be told "Unexpected Token" can be a very very long way away from the real number. Apparently comments aren't counted as lines for that error - I'm guessing they are pre-parsed out by that point.

Sorry if this isn't going to be trivial to solve!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)