There was an error while loading. Please reload this page.
1 parent 4db3549 commit 5360372Copy full SHA for 5360372
1 file changed
src/Processing.h
@@ -766,6 +766,10 @@ class PImage {
766
"Declare PImage* instead of PImage. "
767
"See " PROCESSING_WEBSITE_URL "/error/E0002.html"
768
)));
769
+ // Prevent PImage img = loadImage(...) -- must use PImage*
770
+ PImage(PImage*) __attribute__((error(
771
+ "E0002: Use PImage* not PImage. Write: PImage* img = loadImage(...);"
772
+ )));
773
PImage& operator=(const PImage&) __attribute__((error(
774
"E0002: PImage value-style assignment is not supported. "
775
0 commit comments