mirror of
https://github.com/dart-lang/sdk
synced 2024-10-15 01:28:05 +00:00
f1a4f0e462
This enables running other C/C++ code before the Dart main function without having to implement the full embedder API by including main_lib and friends in a build but excluding `main.cc`. TEST=ci build + flutter bot Change-Id: I5739eb21fa6918b0a2c0f33f7d97dad73c5cf0b1 Cq-Include-Trybots: luci.dart.try:flutter-engine-linux-try,flutter-linux-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278518 Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Slava Egorov <vegorov@google.com>
19 lines
433 B
C++
19 lines
433 B
C++
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef RUNTIME_BIN_MAIN_IMPL_H_
|
|
#define RUNTIME_BIN_MAIN_IMPL_H_
|
|
|
|
namespace dart {
|
|
|
|
namespace bin {
|
|
|
|
void main(int argc, char** argv);
|
|
|
|
} // namespace bin
|
|
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_BIN_MAIN_IMPL_H_
|