1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Now appending main() to the user's sketch in preparation for making the Arduino core a library (.a) file.

This commit is contained in:
David A. Mellis
2007-01-12 17:58:39 +00:00
parent 2e1776862e
commit 41d50ae572
5 changed files with 37 additions and 26 deletions

View File

@ -1451,7 +1451,7 @@ public class Sketch {
// java mode, since that's required
String className =
preprocessor.write(bigCode.toString(), buildPath,
suggestedClassName, codeFolderPackages);
suggestedClassName, codeFolderPackages, target);
if (className == null) {
throw new RunnerException("Could not find main class");
// this situation might be perfectly fine,