Descriptive Problem Summary:
If you do __FILE__ on the very last line (without a trailing newline) of a file, it returns the filename of the #include statement that included the file instead.
Numbered Steps to Reproduce Problem:
1. make a .dm file
2. put something that uses __FILE__ on the last line
3. include it
Code Snippet (if applicable) to Reproduce Problem:
Expected Results:
it shows the filename of the file
Actual Results:
it shows the filename of the file that included it
Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?
When does the problem NOT occur?
when there's a trailing newline or its not on the last line
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Workarounds:
dont put it on the last line I guess
ID:2539643
Jan 25 2020, 1:28 am
|
|||||||||||||
| |||||||||||||
Jan 25 2020, 12:29 pm
|
|
This is actually a limitation that shows up elsewhere too, say, if you have an error on the last line of a file.
|