Skip to content

Commit 3129f5d

Browse files
committed
add support for PApplet.main(Class c)
1 parent 21900a8 commit 3129f5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/processing/core/PApplet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10038,8 +10038,8 @@ static public void main(final String[] args) {
1003810038
* Convenience method so that PApplet.main(YourSketch.class)
1003910039
* launches a sketch, rather than having to call getName() on it.
1004010040
*/
10041-
static public void main(final Class<?> mainClass) {
10042-
main(mainClass.getName(), null);
10041+
static public void main(final Class<?> mainClass, String... args) {
10042+
main(mainClass.getName(), args);
1004310043
}
1004410044

1004510045

0 commit comments

Comments
 (0)