mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:58:32 +00:00
527238e008
Now that MSVC 2013 is required (commit f4824d3
), we can simply use C99
headers that are provided [1]. This means we can rely on <stdint.h> to
provide intXX_t and uintXX_t types, and <inttypes.h> to provide PRIxx
macros.
[1] https://devblogs.microsoft.com/cppblog/c99-library-support-in-visual-studio-2013/
Change-Id: I0cc707907f8aca05ae543188cc01e6c50d517f5a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107839
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
33 lines
1 KiB
C++
33 lines
1 KiB
C++
// Copyright (c) 2011, 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.
|
|
|
|
// clang-format off
|
|
|
|
// This file is linked into the dart executable when it has a snapshot
|
|
// linked into it.
|
|
|
|
#include <stdint.h>
|
|
|
|
extern "C" {
|
|
|
|
// The string on the next line will be filled in with the contents of the
|
|
// generated snapshot binary file for the vm isolate.
|
|
// This string forms the content of a vm isolate snapshot which is loaded
|
|
// into the vm isolate.
|
|
uint8_t kDartVmSnapshotData[] = {
|
|
%s
|
|
};
|
|
uint8_t kDartVmSnapshotInstructions[] = {};
|
|
|
|
// The string on the next line will be filled in with the contents of the
|
|
// generated snapshot binary file for a regular dart isolate.
|
|
// This string forms the content of a regular dart isolate snapshot which is
|
|
// loaded into an isolate when it is created.
|
|
uint8_t kDartCoreIsolateSnapshotData[] = {
|
|
%s
|
|
};
|
|
uint8_t kDartCoreIsolateSnapshotInstructions[] = {};
|
|
|
|
}
|