1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at --- 33 unchanged lines hidden (view full) --- 42// Revision 1.3 2006/01/13 18:53:57 acg 43// Andy Goodrich: added $Log command so that CVS comments are reproduced in 44// the source. 45// 46 47#ifndef __SYSTEMC_EXT_DT_FX_SC_FXDEFS_HH__ 48#define __SYSTEMC_EXT_DT_FX_SC_FXDEFS_HH__ 49 |
50#include "../../utils/messages.hh" |
51#include "../../utils/sc_report_handler.hh" 52#include "../int/sc_nbutils.hh" 53 54#if ULONG_MAX > 0xffffffffUL 55# define SC_LONG_64 1 56#else 57# define SC_LONG_64 0 58#endif --- 178 unchanged lines hidden (view full) --- 237 if (cnd) { \ 238 SC_REPORT_ERROR(id, msg); \ 239 sc_core::sc_abort(); /* can't recover from here */ \ 240 } \ 241 } while ( false ) 242 243#ifdef DEBUG_SYSTEMC 244# define SC_ASSERT_(cnd, msg) \ |
245 SC_ERROR_IF_IMPL_(!(cnd), sc_core::SC_ID_INTERNAL_ERROR_, msg) |
246#else 247# define SC_ASSERT_(cnd, msg) (void(0)) 248#endif 249 250#define SC_ERROR_IF_(cnd,id) SC_ERROR_IF_IMPL_(cnd, id, 0) 251 252#define SC_CHECK_WL_(wl) SC_ERROR_IF_((wl) <= 0, \ 253 "(E300) total wordlength <= 0 is not valid") --- 37 unchanged lines hidden --- |