1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jsapi-tests/valueABI.c Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1.5 + * vim: set ts=8 sw=4 et tw=99 ft=c: 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "jsapi.h" 1.11 + 1.12 +/* See testValueABI.cpp */ 1.13 + 1.14 +bool 1.15 +C_ValueToObject(JSContext *cx, jsval v, JSObject **obj) 1.16 +{ 1.17 + return JS_ValueToObject(cx, v, obj); 1.18 +} 1.19 + 1.20 +jsval 1.21 +C_GetEmptyStringValue(JSContext *cx) 1.22 +{ 1.23 + return JS_GetEmptyStringValue(cx); 1.24 +} 1.25 + 1.26 +size_t 1.27 +C_jsvalAlignmentTest() 1.28 +{ 1.29 + typedef struct { char c; jsval v; } AlignTest; 1.30 + return sizeof(AlignTest); 1.31 +}