electron_library_main.h 652 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2013 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
  5. #define ELECTRON_SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
  6. #include "build/build_config.h"
  7. #include "electron/buildflags/buildflags.h"
  8. #if BUILDFLAG(IS_MAC)
  9. extern "C" {
  10. __attribute__((visibility("default"))) int ElectronMain(int argc, char* argv[]);
  11. #if BUILDFLAG(ENABLE_RUN_AS_NODE)
  12. __attribute__((visibility("default"))) int ElectronInitializeICUandStartNode(
  13. int argc,
  14. char* argv[]);
  15. #endif
  16. }
  17. #endif
  18. #endif // ELECTRON_SHELL_APP_ELECTRON_LIBRARY_MAIN_H_