Deleted Added
sdiff udiff text old ( 13322:7391057615bd ) new ( 13325:86323e6cc8ec )
full compact
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

--- 36 unchanged lines hidden (view full) ---

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#include "messages.hh"
54
55#if ULONG_MAX > 0xffffffffUL
56# define SC_LONG_64 1
57#else
58# define SC_LONG_64 0
59#endif
60
61namespace sc_dt

--- 183 unchanged lines hidden (view full) ---

245# define SC_ASSERT_(cnd, msg) \
246 SC_ERROR_IF_IMPL_(!(cnd), sc_core::SC_ID_INTERNAL_ERROR_, msg)
247#else
248# define SC_ASSERT_(cnd, msg) (void(0))
249#endif
250
251#define SC_ERROR_IF_(cnd,id) SC_ERROR_IF_IMPL_(cnd, id, 0)
252
253#define SC_CHECK_WL_(wl) SC_ERROR_IF_((wl) <= 0, sc_core::SC_ID_INVALID_WL_)
254
255#define SC_CHECK_N_BITS_(n_bits) \
256 SC_ERROR_IF_((n_bits) < 0, sc_core::SC_ID_INVALID_N_BITS_)
257
258#define SC_CHECK_DIV_WL_(div_wl) \
259 SC_ERROR_IF_((div_wl) <= 0, sc_core::SC_ID_INVALID_DIV_WL_)
260
261#define SC_CHECK_CTE_WL_(cte_wl) \
262 SC_ERROR_IF_((cte_wl) <= 0, sc_core::SC_ID_INVALID_CTE_WL_)
263
264#define SC_CHECK_MAX_WL_(max_wl) \
265 SC_ERROR_IF_((max_wl) <= 0 && (max_wl) != -1, \
266 sc_core::SC_ID_INVALID_MAX_WL_)
267
268
269// ----------------------------------------------------------------------------
270// Generic observer macros.
271// ----------------------------------------------------------------------------
272
273#define SC_OBSERVER_(object, observer_type, event) \
274{ \

--- 16 unchanged lines hidden ---