js/src/jsnativestack.h
author Dragana Damjanovic <dd.mozilla@gmail.com>
Wed, 24 May 2017 11:19:40 +0200
changeset 360320 c73ef4420951a1fad4b9d91d2216c3e3d3f31baf
parent 236396 02f2f4c75007651c63bbc0791d9a58dea88f545f
permissions -rw-r--r--
Bug 1364189 - Make sure not to retry socketTransaction if nsHttpConnectionMgr cancels it. r=mcmanus

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 * vim: set ts=8 sts=4 et sw=4 tw=99:
 * 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/. */

#ifndef jsnativestack_h
#define jsnativestack_h

#include "js/Utility.h"

namespace js {

extern void*
GetNativeStackBaseImpl();

inline uintptr_t
GetNativeStackBase()
{
    uintptr_t stackBase = reinterpret_cast<uintptr_t>(GetNativeStackBaseImpl());
    MOZ_ASSERT(stackBase != 0);
    MOZ_ASSERT(stackBase % sizeof(void*) == 0);
    return stackBase;
}

} /* namespace js */

#endif /* jsnativestack_h */