6548694a82
Fixes a malloc/delete[] mismatch.
This reverts commit b3396cbdca.
Change-Id: I18fe142bc60bedd8af4c588ba4039742e1d34606
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134570
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
30 lines
699 B
C++
30 lines
699 B
C++
// Copyright (c) 2020, 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_EXE_UTILS_H_
|
|
#define RUNTIME_BIN_EXE_UTILS_H_
|
|
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "include/dart_api.h"
|
|
#include "platform/globals.h"
|
|
|
|
namespace dart {
|
|
namespace bin {
|
|
|
|
class EXEUtils {
|
|
public:
|
|
// Returns the path to the directory the current executable resides in.
|
|
static char* GetDirectoryPrefixFromExeName();
|
|
|
|
private:
|
|
DISALLOW_COPY_AND_ASSIGN(EXEUtils);
|
|
};
|
|
|
|
} // namespace bin
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_BIN_EXE_UTILS_H_
|