xpcom/build/mozPoisonWrite.h
author Boris Zbarsky <bzbarsky@mit.edu>
Mon, 05 Nov 2012 10:20:04 -0500
changeset 112308 0b9b3b2b89712b7f256dd76c5b55719a15dc0dd8
parent 111962 d4fe281305ce2a77cac61f8576f13c69e957b194
child 119207 afbe1011ae1cb0517de2e652f7dfcbfba330e9cb
permissions -rw-r--r--
Bug 807222 part 3. Make sure we enter the right compartment before we try to define interface constants on a constructor. r=bholley

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim:set ts=4 sw=4 sts=4 ci et: */
/* 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 "mozilla/Types.h"
#include <stdio.h>

MOZ_BEGIN_EXTERN_C
  void MozillaRegisterDebugFD(int fd);
  void MozillaUnRegisterDebugFD(int fd);
  void MozillaUnRegisterDebugFILE(FILE *f);
MOZ_END_EXTERN_C

#ifdef __cplusplus
namespace mozilla {
void PoisonWrite();
void DisableWritePoisoning();
void EnableWritePoisoning();
}
#endif