/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"nsISupports.h" #include"nsString.h"
// Extern "C" utilities used by the rust nsString bindings.
// Provide rust bindings to the nsA[C]String types extern"C" {
// This is a no-op on release, so we ifdef it out such that using it in release // results in a linker error. #ifdef DEBUG void Gecko_IncrementStringAdoptCount(void* aData) {
MOZ_LOG_CTOR(aData, "StringAdopt", 1);
} #elifdefined(MOZ_DEBUG_RUST) void Gecko_IncrementStringAdoptCount(void* aData) {} #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.