Calling a proc that uses a define that is undef'd before the proc call results in a compile error.
Numbered Steps to Reproduce Problem:
- Compile the following code
Code Snippet (if applicable) to Reproduce Problem:
#define THING 1
/proc/stuff()
world.log << THING
return "[THING]"
#undef THING
world/New()
stuff()
Expected Results:
Since THING is only used inside stuff(), one would expect that #undefining THING after the proc has been declared would be fine.
Actual Results:
It is not fine. Moving the #undef AFTER the call to stuff() works, though. I have seen nothing in the DM reference that indicates this is the intended behavior.
Does the problem occur:
Every time? Or how often? Every time.
In other games? N/A
In other user accounts? N/A
On other computers? N/A
When does the problem NOT occur?
N/A
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Unknown.
Output:
It seems byond only compiles procs when they are first used.