tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

valueABI.c (677B)


      1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
      2 * vim: set ts=8 sw=2 et tw=80 ft=c:
      3 * This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #include "jsapi.h"
      8 
      9 /* See testValueABI.cpp */
     10 
     11 bool C_ValueToObject(JSContext* cx, jsval v, JSObject** obj) {
     12  return JS_ValueToObject(cx, v, obj);
     13 }
     14 
     15 jsval C_GetEmptyStringValue(JSContext* cx) {
     16  return JS_GetEmptyStringValue(cx);
     17 }
     18 
     19 size_t C_jsvalAlignmentTest() {
     20  typedef struct {
     21    char c;
     22    jsval v;
     23  } AlignTest;
     24  return sizeof(AlignTest);
     25 }