mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +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>
11 lines
358 B
C++
11 lines
358 B
C++
// Copyright (c) 2012, 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.
|
|
|
|
#include "bin/main_impl.h"
|
|
#include "platform/assert.h"
|
|
|
|
int main(int argc, char** argv) {
|
|
dart::bin::main(argc, argv);
|
|
UNREACHABLE();
|
|
}
|