*
******************************************************************************/
+#include <assert.h>
#include <string.h>
+
#include "bt_types.h"
#include "bt_target.h"
#include "bt_utils.h"
#include "avdt_int.h"
#include "l2c_api.h"
#include "l2cdefs.h"
-#include "wcassert.h"
/*******************************************************************************
}
}
- WC_ASSERT(i != AVDT_NUM_TC_TBL);
+ assert(i != AVDT_NUM_TC_TBL);
return p_tbl;
}
}
/* sanity check */
- WC_ASSERT(i != AVDT_NUM_TC_TBL);
+ assert(i != AVDT_NUM_TC_TBL);
/* initialize entry */
p_tbl->peer_mtu = L2CAP_DEFAULT_MTU;
* Interface to AVRCP mandatory commands
*
******************************************************************************/
+#include <assert.h>
#include <string.h>
#include "gki.h"
#include "avrc_api.h"
#include "avrc_int.h"
-#include "wcassert.h"
/*****************************************************************************
** Global data
BT_HDR *p_cmd = NULL;
UINT8 *p_data;
- WC_ASSERT(p_msg != NULL);
- WC_ASSERT(AVRC_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->pass_len));
+ assert(p_msg != NULL);
+ assert(AVRC_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->pass_len));
if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_CMD_POOL_ID)) != NULL)
{
UINT16 AVRC_PassCmd(UINT8 handle, UINT8 label, tAVRC_MSG_PASS *p_msg)
{
BT_HDR *p_buf;
- WC_ASSERT(p_msg != NULL);
+ assert(p_msg != NULL);
if (p_msg)
{
p_msg->hdr.ctype = AVRC_CMD_CTRL;
UINT16 AVRC_PassRsp(UINT8 handle, UINT8 label, tAVRC_MSG_PASS *p_msg)
{
BT_HDR *p_buf;
- WC_ASSERT(p_msg != NULL);
+ assert(p_msg != NULL);
if (p_msg)
{
p_buf = avrc_pass_msg(p_msg);
* Interface to AVRCP optional commands
*
******************************************************************************/
+#include <assert.h>
#include <string.h>
#include "gki.h"
#include "avrc_api.h"
#include "avrc_int.h"
-#include "wcassert.h"
-
-
/******************************************************************************
**
** Function avrc_vendor_msg
BT_HDR *p_cmd;
UINT8 *p_data;
- WC_ASSERT(p_msg != NULL);
+ assert(p_msg != NULL);
#if AVRC_METADATA_INCLUDED == TRUE
- WC_ASSERT(AVRC_META_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->vendor_len));
+ assert(AVRC_META_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->vendor_len));
if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_META_CMD_POOL_ID)) != NULL)
#else
- WC_ASSERT(AVRC_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->vendor_len));
+ assert(AVRC_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->vendor_len));
if ((p_cmd = (BT_HDR *) GKI_getpoolbuf(AVRC_CMD_POOL_ID)) != NULL)
#endif
{
+++ /dev/null
-/******************************************************************************
- *
- * Copyright (C) 1999-2012 Broadcom Corporation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- ******************************************************************************/
-#ifndef WC_ASSERT_H
-#define WC_ASSERT_H
-
-
-#ifdef _DEBUG
-
-#include "bt_target.h"
-
-
-
-/* debug settings*/
-#ifndef WC_DEBUG_LEVEL
-#define WC_DEBUG_LEVEL 0
-#endif
-
-#if WC_DEBUG_LEVEL == 0
-
-#include "stdio.h" /* for printf()*/
-
-#ifdef __cplusplus
-extern "C" wc_assert(char *message, char *file, UINT32 line);
-#else
-void wc_assert(char *message, char *file, UINT32 line);
-#endif
-
-#define WC_ASSERT(_x) if ( !(_x) ) wc_assert("ASSERT at %s line %d\n", __FILE__, __LINE__);
-#define WC_ASSERT_ALWAYS() wc_assert("ASSERT! at %s line %d\n", __FILE__, __LINE__);
-
-#elif WC_DEBUG_LEVEL == 1
-
-#include "assert.h"
-
-#define WC_ASSERT(_x) assert(_x);
-#define WC_ASSERT_ALWAYS() assert(0);
-#endif /* WC_DEBUG_LEVEL*/
-
-#else /* _DEBUG*/
-
-#ifndef WC_ASSERT
-#define WC_ASSERT(_x) ;
-#endif
-
-#ifndef WC_ASSERT_ALWAYS
-#define WC_ASSERT_ALWAYS() ;
-#endif
-
-#endif /* _DEBUG*/
-#endif /* WC_ASSERT_H*/
* Protocol (MCAP).
*
******************************************************************************/
+#include <assert.h>
#include <string.h>
#include "bt_target.h"
#include "mca_defs.h"
#include "mca_int.h"
-#include "wcassert.h"
#include "btu.h"
tL2CAP_APPL_INFO l2c_cacp_appl;
tL2CAP_APPL_INFO l2c_dacp_appl;
- WC_ASSERT(p_reg != NULL );
- WC_ASSERT(p_cback != NULL );
+ assert(p_reg != NULL );
+ assert(p_cback != NULL );
MCA_TRACE_API ("MCA_Register: ctrl_psm:0x%x, data_psm:0x%x", p_reg->ctrl_psm, p_reg->data_psm);
tMCA_RCB *p_rcb = mca_rcb_by_handle(handle);
tMCA_CS *p_depcs;
- WC_ASSERT(p_dep != NULL );
- WC_ASSERT(p_cs != NULL );
- WC_ASSERT(p_cs->p_data_cback != NULL );
+ assert(p_dep != NULL );
+ assert(p_cs != NULL );
+ assert(p_cs->p_data_cback != NULL );
MCA_TRACE_API ("MCA_CreateDep: %d", handle);
if (p_rcb)
tMCA_DCB *p_dcb;
MCA_TRACE_API ("MCA_CreateMdlRsp: %d dep=%d mdl_id=%d cfg=%d rsp_code=%d", mcl, dep, mdl_id, cfg, rsp_code);
- WC_ASSERT(p_chnl_cfg != NULL );
+ assert(p_chnl_cfg != NULL );
if (p_ccb)
{
if (p_ccb->cong)
tMCA_DCB *p_dcb;
MCA_TRACE_API ("MCA_ReconnectMdl: %d ", mcl);
- WC_ASSERT(p_chnl_cfg != NULL );
+ assert(p_chnl_cfg != NULL );
if (p_ccb)
{
if (p_ccb->p_tx_req || p_ccb->p_rx_msg || p_ccb->cong)
tMCA_DCB *p_dcb;
MCA_TRACE_API ("MCA_ReconnectMdlRsp: %d ", mcl);
- WC_ASSERT(p_chnl_cfg != NULL );
+ assert(p_chnl_cfg != NULL );
if (p_ccb)
{
if (p_ccb->cong)
tMCA_TC_TBL *p_tbl;
MCA_TRACE_API ("MCA_DataChnlCfg: %d ", mcl);
- WC_ASSERT(p_chnl_cfg != NULL );
+ assert(p_chnl_cfg != NULL );
if (p_ccb)
{
result = MCA_NO_RESOURCES;
* Utility functions.
*
******************************************************************************/
+#include <assert.h>
#include <string.h>
#include "bt_target.h"
#include "mca_api.h"
#include "mca_defs.h"
#include "mca_int.h"
-#include "wcassert.h"
#include "l2c_api.h"
/* Main Control block for MCA */
}
/* sanity check */
- WC_ASSERT(i != MCA_NUM_TC_TBL);
+ assert(i != MCA_NUM_TC_TBL);
/* initialize entry */
p_tbl->peer_mtu = L2CAP_DEFAULT_MTU;
}
/* sanity check */
- WC_ASSERT(i != MCA_NUM_TC_TBL);
+ assert(i != MCA_NUM_TC_TBL);
/* initialize entry */
p_tbl->peer_mtu = L2CAP_DEFAULT_MTU;