Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Better friendly error help for using p5 globals in top-level code. #1256
This fixes #1247 by doing the following:
Since this functionality is no longer really trivial, I also added a simple unit test suite.
I also added a bunch of comments in the code to explain some of the implementation decisions, as well as potential future workarounds.